mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
Improve authConfig.
This commit is contained in:
@ -70,8 +70,7 @@ class App extends Component {
|
||||
Setting.initServerUrl();
|
||||
Auth.initAuthWithConfig({
|
||||
serverUrl: Setting.ServerUrl,
|
||||
appName: "app-built-in",
|
||||
organizationName: "built-in",
|
||||
appName: "app-built-in", // the application name of Casdoor itself, do not change it
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -12,11 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
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 let authConfig = {};
|
||||
|
||||
export function initAuthWithConfig(config) {
|
||||
authConfig = config;
|
||||
|
Reference in New Issue
Block a user