Passer au contenu principal

Pulsar manager

Casdoor peut facilement se connecter à Pulsar Manager.

Le code pour connecter Casdoor a déjà été ajouté à Pulsar Manager, il suffit donc de configurer le fichier application.yml dans le back-end et d'activer l'interrupteur du front-end.

Étape 1 : Déployer Casdoor

Deploy Casdoor. See Server installation. Ensure the server is running and you can sign in at the Casdoor login page (e.g. admin / 123).

Étape 2 : Configurer Casdoor

Configure an organization and an application in Casdoor (see Application and Organization).

Étape 2.1 : Créer une organisation

organisation

Étape 2.2 : Créer une application

application

Étape 3 : Activer l'interrupteur du front-end de Pulsar Manager

Activez cet interrupteur pour envoyer le code et l'état au back-end.

The switch is on line 80 of pulsar-manager/front-end/src/router/index.js.

frontSwitch

Étape 4 : Configurer le code du back-end

Configurez les paramètres de Casdoor dans le fichier application.properties, qui se trouve à la ligne 154 du pulsar-manager/src/main/resources/application.properties.

casdoor.endpoint = http://localhost:8000
casdoor.clientId = <client id from previous step>
casdoor.clientSecret = <client secret from previous step>
casdoor.certificate = <client certificate from previous step>
casdoor.organizationName = pulsar
casdoor.applicationName = app-pulsar