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

Azure login in ionic cordova mobile app #4842

Closed
PriyankaDatDure opened this issue May 30, 2022 · 6 comments
Closed

Azure login in ionic cordova mobile app #4842

PriyankaDatDure opened this issue May 30, 2022 · 6 comments
Assignees
Labels
answered Question has received "first qualified response" 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 question Customer is asking for a clarification, use case or information.

Comments

@PriyankaDatDure
Copy link

Core Library

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

Core Library Version

2.23.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

2.2.0

Description

I am using @azure/msal-angular plugin to login with azure in ionic mobile app. I'am able to login but theres some issue with the redirect url. I get Application error net::ERR_CONNECTION_REFUSED (http://localhost/#code={code}
1653392327335
)

MSAL Configuration

No response

Relevant Code Snippets

No response

Identity Provider

Azure AD / MSA

Source

External (Customer)

@PriyankaDatDure PriyankaDatDure added the question Customer is asking for a clarification, use case or information. label May 30, 2022
@ghost ghost assigned ellymakuba May 30, 2022
@ghost ghost added the Needs: Attention 👋 Awaiting response from the MSAL.js team label May 30, 2022
@github-actions github-actions bot added msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package labels May 30, 2022
@ellymakuba
Copy link
Contributor

@PriyankaDatDure please provide the fiddler trace, MSAL configuration and relevant code snippet.

@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 31, 2022
@ellymakuba
Copy link
Contributor

@PriyankaDatDure see the link shared on how to resolve the error of localhost not being accessible from a mobile device while using ionic Redirect URI for Angular/Ionic App on Device · Issue #2723 · AzureAD/microsoft-authentication-library-for-js (github.com)

@PriyankaDatDure
Copy link
Author

this the config:

MsalModule.forRoot( new PublicClientApplication({
auth: {
clientId: 'CLIENTID',
authority: 'https://login.microsoftonline.com/tenantId',
},
cache: {
cacheLocation: 'localStorage',
storeAuthStateInCookie: isIE,
}
}), null, null)

and i use this.authService.loginRedirect() method to login

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

ghost commented Jun 6, 2022

This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @ellymakuba please follow up.

@ellymakuba
Copy link
Contributor

@PriyankaDatDure did you try the above, if yes what was the outcome?

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

ghost commented Jun 13, 2022

@PriyankaDatDure 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 13, 2022
@ghost ghost closed this as completed Jun 20, 2022
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" 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 question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

2 participants