Skip to content

Commit

Permalink
docs(nx-cloud): update azure saml setup (nrwl#27898)
Browse files Browse the repository at this point in the history
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
  • Loading branch information
nartc authored Sep 12, 2024
1 parent 514ce17 commit 0e603af
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions docs/nx-cloud/enterprise/on-premise/auth-saml.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,30 @@ if you are interested.

![Step 11](/nx-cloud/enterprise/on-premise/images/saml/azure_11.png)

11. Download the certificate in **Base64**:
Make sure your application user profile exposes the email address under `user.mail`. This can be configured in `Users and Groups` in the Azure portal. Alternatively, you can always configure the `email` claim to use a different property under the `user` object.

11. Under `SAML Certificates`, click the pencil icon to edit

![Step 12](/nx-cloud/enterprise/on-premise/images/saml/azure_12.png)

12. Extract the downloaded certificate value as a one-line string:
For **Signing Option**, select **Sign SAML response and assertion**

![Step 13](/nx-cloud/enterprise/on-premise/images/saml/azure_13.png)

Then click **Save** and close the popover.

12. Download the certificate in **Base64**:

![Step 14](/nx-cloud/enterprise/on-premise/images/saml/azure_14.png)

13. Extract the downloaded certificate value as a one-line string:
1. `awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' azure_cert_file.cer`
2. We’ll use this in a bit to initialize an environment variable
13. Copy the Login URL:
14. Copy the Login URL:

![Step 13](/nx-cloud/enterprise/on-premise/images/saml/azure_13.png)
![Step 15](/nx-cloud/enterprise/on-premise/images/saml/azure_15.png)

14. Then add these two env vars to your Nx Cloud cluster secrets (see [Helm config](#helm-config) below):
15. Then add these two env vars to your Nx Cloud cluster secrets (see [Helm config](#helm-config) below):
1. `SAML_CERT=<your-cert-string-from-above>`
2. `SAML_ENTRY_POINT=<your-login-url-from-above>`

Expand Down
Binary file modified docs/nx-cloud/enterprise/on-premise/images/saml/azure_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/nx-cloud/enterprise/on-premise/images/saml/azure_13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e603af

Please sign in to comment.