Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded Registration #6059

Closed
hansakaRightS opened this issue May 24, 2023 · 4 comments
Closed

Embedded Registration #6059

hansakaRightS opened this issue May 24, 2023 · 4 comments
Assignees
Labels
answered Question has received "first qualified response" b2c Related to Azure B2C library-specific issues msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package Needs: Author Feedback Awaiting response from issue author no-issue-activity Issue author has not responded in 5 days public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.

Comments

@hansakaRightS
Copy link

hansakaRightS commented May 24, 2023

Core Library

MSAL.js v2 (@azure/msal-browser)

Core Library Version

2.32.1

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

2.1.2

Public or Confidential Client?

Public

Description

We have implemented the embedded registration in out application as a feature. we have configured the headers and were able to load the registration inside the iframe.

after a success full registration azure b2c redirects to the redirect uri inside the iframe and then we reload the parent frame to continue the flow. after this the application redirects one more time before we get authenticated.

Is there a way to get the authentication details in a single redirection?

MSAL Configuration

auth: {
        clientId: clientId,
        authority: "B2C_1A_SIGNUP_SIGNIN",
        redirectUri: '/',
        navigateToLoginRequestUrl: false
    },
    cache: {
        cacheLocation: "LocalStoarage",
        storeAuthStateInCookie: false
    }

Relevant Code Snippets

<iframe 
    id="embeddedRegisterIframe" 
    frameborder="0" 
    scrolling="no" 
    [src]=" uri" 
    style=" width: 100%; height: 100%;"></iframe>

Identity Provider

Azure B2C Custom Policy

Source

External (Customer)

@hansakaRightS hansakaRightS added the question Customer is asking for a clarification, use case or information. label May 24, 2023
@ghost ghost added the Needs: Attention 👋 Awaiting response from the MSAL.js team label May 24, 2023
@github-actions github-actions bot added b2c Related to Azure B2C library-specific issues msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package public-client Issues regarding PublicClientApplications labels May 24, 2023
@ghost ghost assigned lalimasharda May 24, 2023
@lalimasharda
Copy link
Contributor

Just to be clear, are you talking about embedding the Azure AD B2C sign-in user interface in your application?

@ghost ghost added answered Question has received "first qualified response" Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels May 24, 2023
@hansakaRightS
Copy link
Author

https://learn.microsoft.com/en-us/azure/active-directory-b2c/embedded-login?pivots=b2c-custom-policy
we have implemented this but, after window.top.location.reload(); we are getting too many redirection before we are actually logged into the app. we want to reduce this redirections.

@ghost ghost added Needs: Attention 👋 Awaiting response from the MSAL.js team and removed Needs: Author Feedback Awaiting response from issue author labels May 29, 2023
@lalimasharda
Copy link
Contributor

Can you please share network logs and MSAL verbose logs from the console? We have documentation on Logging.

@ghost ghost added Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels May 30, 2023
@ghost
Copy link

ghost commented Jun 5, 2023

@HansakaSS This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.

@ghost ghost added the no-issue-activity Issue author has not responded in 5 days label Jun 5, 2023
@ghost ghost closed this as completed Jun 12, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Question has received "first qualified response" b2c Related to Azure B2C library-specific issues msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package Needs: Author Feedback Awaiting response from issue author no-issue-activity Issue author has not responded in 5 days public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

3 participants