Skip to content

Azure AD B2C configuration details

CodeGx edited this page Apr 2, 2018 · 4 revisions

The identity and access management of veracity platform is fully based on Microsoft Azure AD B2C. Therefore, your app must obtain the configuration details for your app on Microsoft Azure AD B2C, which you can contact 8989@dnvgl.com (Global Service Desk of DNV GL) to help you with it.

Azure AD B2C Configuration details

Once your app is configured by Veracity Team, you will receive the following information via email. The settings are expected to be kept safely in your app somewhere, normally in app configuration file. Let's take a look at a sample for the TEST environment.

Client ID: a GUID string , the unique id for your app
Client Secret: a Key to call veracity API which is secured by Azure AD B2C
Reply URL (Redirect Uri): the URL you provided where the tokens will be posted back to. Although, multiple urls are allowed, all the urls are supposed to be under the same domain. The following example illustrates what the domain means.

URL 1 URL 2
Same Domain https://localhost:134679 https://localhost:43300
Different Domain https://localhost:134679 https://someapp.azurewebsites.net

As a result, you will need corresponding Azure AD B2C configurations for each domain.

You also need to ensure the RedirectUri ends with signin-oidc, like https://localhost:43300/signin-oidc, This is the default value for the OIDC client middleware.

Tenant name: dnvglb2ctest.onmicrosoft.com (id: ed815121-cdfa-4097-b524-e2b23cd36eb6)
Policy name: B2C_1A_SignInWithADFSIdp
Veracity Service API (APIv3):

ServiceID in My Services: a GUID string, used when you call the Veracity Service API to for example update subscriptions


Configurations on each environment

Scope's:

Environment Scope
Test https://dnvglb2ctest.onmicrosoft.com/a4a8e726-c1cc-407c-83a0-4ce37f1ce130/user_impersonation
Stag https://dnvglb2cstag.onmicrosoft.com/28b7ec7b-db04-40bb-a042-b7ac5a8b36be/user_impersonation
Production https://dnvglb2cprod.onmicrosoft.com/83054ebf-1d7b-43f5-82ad-b2bde84d7b75/user_impersonation

Azure ad b2c tenant id:

Environment Tenant id
Test ed815121-cdfa-4097-b524-e2b23cd36eb6
Stag 307530a1-6e70-4ef7-8875-daa8f5a664ec
Production a68572e3-63ce-4bc1-acdc-b64943502e9d

Azure ad b2c tenant name:

Environment Tenant name
Test dnvglb2ctest.onmicrosoft.com
Stag dnvglb2cstag.onmicrosoft.com
Production dnvglb2cprod.onmicrosoft.com

Api V3 urls

Environment Api url
Test https://myapiv3test.dnvgl.com/
Stag https://myapiv3stag.dnvgl.com/
Production https://myapiv3.dnvgl.com/
Clone this wiki locally