mirror of
https://github.com/netbirdio/docs.git
synced 2026-10-29 07:59:05 +01:00
fix add pkce redirect url in mobile and desktop applications (#81)
This commit is contained in:
BIN
Binary file not shown.
|
After Width: | Height: | Size: 414 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 518 KiB |
@@ -578,9 +578,9 @@ In this step, we will create and configure NetBird application in azure AD.
|
|||||||
- Navigate to [Azure Active Directory](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview)
|
- Navigate to [Azure Active Directory](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview)
|
||||||
- Click `App Registrations` in the left menu then click on the `+ New registration` button to create a new application.
|
- Click `App Registrations` in the left menu then click on the `+ New registration` button to create a new application.
|
||||||
- Fill in the form with the following values and click Register
|
- Fill in the form with the following values and click Register
|
||||||
- Name: `Netbird`
|
- Name: `Netbird`
|
||||||
- Account Types: `Accounts in this organizational directory only (Default Directory only - Single tenant)`
|
- Account Types: `Accounts in this organizational directory only (Default Directory only - Single tenant)`
|
||||||
- Redirect URI: select `Single-page application (SPA)` and URI as `https://<yournetbirddomain.com>/silent-auth`
|
- Redirect URI: select `Single-page application (SPA)` and URI as `https://<yournetbirddomain.com>/silent-auth`
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-new-application.png" alt="high-level-dia" className="imagewrapper"/>
|
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-new-application.png" alt="high-level-dia" className="imagewrapper"/>
|
||||||
@@ -588,7 +588,7 @@ In this step, we will create and configure NetBird application in azure AD.
|
|||||||
|
|
||||||
#### Step 2. Platform configurations
|
#### Step 2. Platform configurations
|
||||||
- Click `Authentication` on the left side menu
|
- Click `Authentication` on the left side menu
|
||||||
- Under the `Single-page application` Section, add another URI `https://<yournetbirddomain.com>/auth` and `http://localhost:53000`
|
- Under the `Single-page application` Section, add another URI `https://<yournetbirddomain.com>/auth`
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-spa-uri-setup.png" alt="high-level-dia" className="imagewrapper"/>
|
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-spa-uri-setup.png" alt="high-level-dia" className="imagewrapper"/>
|
||||||
@@ -600,6 +600,13 @@ In this step, we will create and configure NetBird application in azure AD.
|
|||||||
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-flows-setup.png" alt="high-level-dia" className="imagewrapper"/>
|
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-flows-setup.png" alt="high-level-dia" className="imagewrapper"/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
- Click `Add a Platform` and select `Mobile and desktop applications`
|
||||||
|
- Fill in the form with the following values and click Configure
|
||||||
|
- Custom redirect URIs: `http://localhost:53000`
|
||||||
|
<p>
|
||||||
|
<img src="/docs-static/img/integrations/identity-providers/self-hosted/azure-spa-uri-setup.png" alt="high-level-dia" className="imagewrapper"/>
|
||||||
|
</p>
|
||||||
|
|
||||||
#### Step 3. Create a NetBird application scope
|
#### Step 3. Create a NetBird application scope
|
||||||
- Click `Expose an API` on the left menu
|
- Click `Expose an API` on the left menu
|
||||||
- Under `Application ID URI` click `Set` and then `Save`
|
- Under `Application ID URI` click `Set` and then `Save`
|
||||||
@@ -686,6 +693,7 @@ https://login.microsoftonline.com/<TENANT_ID>/v2.0/.well-known/openid-configurat
|
|||||||
|
|
||||||
- Set properties in the `setup.env` file:
|
- Set properties in the `setup.env` file:
|
||||||
```shell
|
```shell
|
||||||
|
NETBIRD_DOMAIN="<YOUR_DOMAIN>"
|
||||||
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://login.microsoftonline.com/<TENANT_ID>/v2.0/.well-known/openid-configuration"
|
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://login.microsoftonline.com/<TENANT_ID>/v2.0/.well-known/openid-configuration"
|
||||||
NETBIRD_USE_AUTH0=false
|
NETBIRD_USE_AUTH0=false
|
||||||
NETBIRD_AUTH_CLIENT_ID="<APPLICATION_ID>"
|
NETBIRD_AUTH_CLIENT_ID="<APPLICATION_ID>"
|
||||||
|
|||||||
Reference in New Issue
Block a user