question

MaximilianAnzinger-6688 avatar image
0 Votes"
MaximilianAnzinger-6688 asked soumi-MSFT answered

B2C Embedded sign-in experience

Hello,

I followed the guide to setup the embedded sign in experience using b2c and an IFrame (embedded-login).
However, I am not quite sure on how to get the Access token and use it throughout my Application.
So far I got the Iframe to display the SignIn/SignUp Form and the login/signup works flawless.
But after that the iframe redirects to the landing page of the application and my "parent" Page does not receive an ID Token.
(The url of the "parent" Page matches the redirect url of the iframe authorization request)
The src of the IFrame is the authorization request url of my b2c policy.

PS: Viewing the network Tab I can see the issued and valid ID Token in the "confirmed" response (redirect-url/#id_token=eyJ0eX...) from the b2c Policy.

Best
Max


azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered

@MaximilianAnzinger-6688, can you try using this B2C EmbeddedSignin MSAL-Node Sample. This sample uses the OIDC flow to authenticate the user, as well as fetch the ID_Token from B2C and display the user details. This sample implements the iframe to load the signup and signin page of B2C.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.