mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Improve authConfig.
This commit is contained in:
@ -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",
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Reference in New Issue
Block a user