GithubHelp home page GithubHelp logo

Comments (12)

hkusulja avatar hkusulja commented on June 14, 2024 2

So, any info about MSAL support for Angular 4+ ?

from microsoft-authentication-library-for-js.

navyasric avatar navyasric commented on June 14, 2024 2

@hkusulja There are plans in MSAL roadmap this year for an Angular library.

from microsoft-authentication-library-for-js.

Gimly avatar Gimly commented on June 14, 2024 1

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.

nehaagrawal avatar nehaagrawal commented on June 14, 2024 1

@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.

jraadt avatar jraadt commented on June 14, 2024

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.

hkusulja avatar hkusulja commented on June 14, 2024

Maybe this can help - https://github.com/Azure-Samples/active-directory-b2c-javascript-angular2.4-spa

from microsoft-authentication-library-for-js.

hkusulja avatar hkusulja commented on June 14, 2024

@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.

Gimly avatar Gimly commented on June 14, 2024

@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.

hkusulja avatar hkusulja commented on June 14, 2024

@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.

Gimly avatar Gimly commented on June 14, 2024

@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.

hkusulja avatar hkusulja commented on June 14, 2024

@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.

hkusulja avatar hkusulja commented on June 14, 2024

Bump, will Microsoft support the MSAL for Angular library?

from microsoft-authentication-library-for-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.