I have setup a Azure B2C for experimenting, and have created a signupandsign as a user flow.
I've followed the github samples on how to use the MSAL library from Angular 2+ and have as a result got this format:
export const protectedResourceMap: [string, string[]][] = [
['https://graph.microsoft.com/v1.0/me', ['user.read']],
];
function MSALConfigFactory(): Configuration {
return {
auth: {
clientId: environment.clientId,
authority: environment.authority,
validateAuthority: true,
redirectUri: environment.redirectUrl,
postLogoutRedirectUri: environment.redirectUrl,
navigateToLoginRequestUrl: true,
},
cache: {
storeAuthStateInCookie: false, // set to true for IE 11
},
};
}
function MSALAngularConfigFactory(): MsalAngularConfiguration {
return {
popUp: false,
protectedResourceMap
};
}
export const environment = {
production: false,
clientId: '22ccxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
authority: 'https://login.microsoftonline.com/bc5xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/',
redirectUrl: 'http://localhost:4200'
};
But all it does it take to sign in page, doesn't give me any options for sign up. How do i trigger the signupandsign user flow from my Angular SPA?
https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/b2c_1_susiwhich refers the policy - Raghavendra beldona