Microsoft-authentication-library-for-js: Passing claims to B2C policy

Created on 19 Dec 2017  路  4Comments  路  Source: AzureAD/microsoft-authentication-library-for-js

Can't find any documentation about passing claims to the B2C SignUp policy.
I have a use case where there is data obtained before user Sign Ups, and this info should be used by Sign Up policy.

All 4 comments

@ed-ilyin We have a sample app under the devApps folder in the repo for B2C scenario. Can you try using that to see if it helps you in any way.

As far as I can see those samples under devApps does not contain example of sending custom claims to the b2c policy.

I found example how to do that for .NET, but I need the same in my javascript application - the way to add to assertion self signed JWT token with my claim like extension_Brand

Example of sending claim to azure-ad-b2c policy from JS single page application

var client_assertion_type = encodeURIComponent("urn:ietf:params:oauth:client-assertion-type:jwt-bearer");

var jwtQueryParams = "client_assertion_type=" + client_assertion_type + "&client_assertion=" + jwt;

msalApp.loginRedirect(myScopes, jwtQueryParams);

@spottedmahn Thanks for the response. Closing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Calamari picture Calamari  路  3Comments

Anees-Raja picture Anees-Raja  路  3Comments

spottedmahn picture spottedmahn  路  4Comments

exequeryphil picture exequeryphil  路  3Comments

yakimko picture yakimko  路  3Comments