-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): add sso with azure documentation (#95)
Document the necessary steps to setup oauth with Microsoft Azure. Part of #53
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Setup SSO with Azure | ||
|
||
## Register your application with Azure | ||
First register your application with Azure using the steps described <a href="https://learn.microsoft.com/en-us/azure/active-directory-b2c/client-credentials-grant-flow?pivots=b2c-user-flow" target="_blank">here</a>. | ||
|
||
Take note of these; | ||
|
||
2. Azure Client ID | ||
2. Azure Tenant ID | ||
|
||
## Configure Nesis | ||
To configure Nesis for Azure, set these environment variables for the respective microservices; | ||
|
||
### Frontend | ||
|
||
In the frontend, set | ||
|
||
``` | ||
NESIS_OAUTH_AZURE_ENABLED: true | ||
NESIS_OAUTH_AZURE_CLIENT_ID: 00000000-0000-0000-0000-000000000 | ||
NESIS_OAUTH_AZURE_REDIRECTURI: http[s]://your.nesis.host.name/ | ||
NESIS_OAUTH_TOKEN_KEY: __some__random_secure_key___ | ||
NESIS_OAUTH_TOKEN_VALUE: ___some___other___very__random___key | ||
``` | ||
|
||
In the api service, set | ||
``` | ||
NESIS_OAUTH_TOKEN_KEY: __some__random_secure_key___ | ||
NESIS_OAUTH_TOKEN_VALUE: ___some___other___very__random___key | ||
``` | ||
|
||
!!! warning "Important" | ||
|
||
The key `NESIS_OAUTH_TOKEN_KEY` and value `NESIS_OAUTH_TOKEN_VALUE` must match in both services. | ||
|
||
You should now be able to authenticate with Microsoft Azure. |