Improve authConfig.

This commit is contained in:
Gucheng Wang
2021-12-13 16:42:46 +08:00
parent 726e4e3dc1
commit cf9e628a3e
2 changed files with 2 additions and 7 deletions

View File

@ -70,8 +70,7 @@ class App extends Component {
Setting.initServerUrl(); Setting.initServerUrl();
Auth.initAuthWithConfig({ Auth.initAuthWithConfig({
serverUrl: Setting.ServerUrl, serverUrl: Setting.ServerUrl,
appName: "app-built-in", appName: "app-built-in", // the application name of Casdoor itself, do not change it
organizationName: "built-in",
}); });
} }

View File

@ -12,11 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
export let authConfig = { export let authConfig = {};
serverUrl: "http://example.com", // your Casdoor URL, like the official one: https://door.casbin.com
appName: "app-built-in", // your Casdoor application name, like: "app-built-in"
organizationName: "built-in", // your Casdoor organization name, like: "built-in"
}
export function initAuthWithConfig(config) { export function initAuthWithConfig(config) {
authConfig = config; authConfig = config;