Comments (12)
So, any info about MSAL support for Angular 4+ ?
from microsoft-authentication-library-for-js.
@hkusulja There are plans in MSAL roadmap this year for an Angular library.
from microsoft-authentication-library-for-js.
I created a fully working example using MSAL in an Angular 4 / .Net Core application, based off the Angular 4 .Net starter template. https://github.com/Gimly/NetCoreAngularAzureB2CMsal
I also have a simpler example with just Angular 4 https://github.com/Gimly/simpleAngularAzureB2C
from microsoft-authentication-library-for-js.
@hkusulja @Gimly @jraadt We have released @azure/msal-angular for angular 4.3+ and @azure/msal-angularjs for angular 1.7 on NPMJS. I am closing this issue.
from microsoft-authentication-library-for-js.
With the newly released HttpClient in Angular it allows for interceptors. Building an interceptor like what was done for the ADAL library should be feasible now.
from microsoft-authentication-library-for-js.
Maybe this can help - https://github.com/Azure-Samples/active-directory-b2c-javascript-angular2.4-spa
from microsoft-authentication-library-for-js.
@Gimly great example. However it does not have Microsoft Graph API (which also should be used to pull extended properties from users) and delegation/access rights to another backend app. So properly frontend/angular (implicit flow) and backend can be devided...
from microsoft-authentication-library-for-js.
@hkusulja Yes, I know it has still a few things to improve. I could add easily the Graph API since I did it in the app I'm working on, but I'm using a sample Azure AD B2C tenant and therefore can't add the permission to get info from the Graph API.
Delegation/access rights to another backend app, you mean from the .Net Core backend?
Feel free to add an issues for things you feel are missing directly on the repo and I'll look into it. You can also contribute if you are willing.
from microsoft-authentication-library-for-js.
@Gimly So you are saying that it is not possible to get one OAuth2 token through implicit flow / angular2 from B2C AAD directory which also has a permission for:
Graph API, scope:xxx
mycustomServerBackend, scope: xxx
If so, any reference to do that?
This is normally working on "normal" AAD.
from microsoft-authentication-library-for-js.
@hkusulja No, I'm not saying it's not possible, it's totally possible. It's just that I don't have to rights to the Azure B2C tenant I'm using in the sample and I'm not sure if they have added the rights for the app registration I'm using to use the Graph API. It's just a question of configuration.
from microsoft-authentication-library-for-js.
@Gimly , I am sure, that if you have a Azure subscription for testing, you can create your own test Azure AD B2C , and inside it, create your applications with rights / Graph API...
I do not see way how to achieve access to Graph API and my custom backend...
from microsoft-authentication-library-for-js.
Bump, will Microsoft support the MSAL for Angular library?
from microsoft-authentication-library-for-js.
Related Issues (20)
- Cannot convert Teams user token to ACS token
- AADSTS1002014: Unable to complete request. The request was invalid since domain_hint and opaque login_hint cannot be used together.
- Empty token Cache
- MSAL react + Entra External Id self-service registration results in error "AADSTS131010" on first time sign up only
- Allow the authentication scheme to be specified for MsalInterceptor HOT 1
- MSAL React redirect to "/#code=..." after login popup HOT 2
- Problem with msal-node ElectronSystemBrowserTestApp authentication HOT 3
- Intune Get Devices API is failing HOT 1
- Closing due to inactivity, let us know if this is still an issue. HOT 1
- Intune Get Devices API is not working as expected in some cases and In some cases we do get devices and not able to find the difference and not able to understand from current error message HOT 8
- legacy method "withInterceptorsFromDi()" use in msal for angular standalone example. HOT 1
- [msal-node] Confidential Client - Client Assertion implementation should accept callback instead of string argument HOT 3
- MSAL Angular Application Redirect URL Marked as Dangerous Site After Microsoft Login HOT 3
- SSO, 400 (Bad Request), POST https://login.microsoftonline.com/MS_TENANT_ID/oauth2/v2.0/token HOT 1
- msal-node "No 'Access-Co ntrol-Allow-Origin' header is present on the requested resource." error when redirecting to URL returned by getAuthCodeUrl() HOT 1
- The handleRedirectPromise not executing on fulfillment HOT 3
- Unexpected behavior when custom auth is enabled for Azure Static Web App HOT 1
- Cannot use aplication after deployment for some clients after upgrading from version 2 to 3 (and Angular to version 17)
- acquireTokenSilent with MSAL.js giving error HOT 2
- msal v3 - navigateToLoginRequestUrl true does not wait for logic performed in redirectUri component before navigating to previous page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-authentication-library-for-js.