We are using msadal librabry for Azure ad B2C login, now I want to add response_type in https://login.microsoftonline.com/common/oauth2/authorize url while user login.
below is code used for login
if (!this.msAdal.isAuthenticated && !environment.isTestEnvironment) {
this.msAdal.login();
}
used MsAdalAngular6Service library for msadal
I have check adal.js library file, in this for login method response type id_token is set as hardcoded, so I think we can not assign response type in msadal, so what will be the solution if I want to pass response type as code?
Please try to use
oidc-client-jslibrary for Azure AD B2C, refer to this link. You can find the accompanying sample project here.In oidc-settings.json: