0

I am developing Angular 6 & Web-API Core application & Now I have implemented Azure AD Authentication for my application. Till now authentication is successful. we are using ADAL-Angular 4 for handling the login, log-out in angular.

How to generate the access token from angular & how to identify the authenticated user has access or not. My user's, roles exist in DB, not in Azure AD.

I don't have Identity server in middle.

Please let me know.

3
  • With hard work and determination. Do the research. Post relevant code and your previous attempts. Explain what's wrong... Commented Jun 4, 2019 at 10:47
  • It is quite a high level question. As a high-level answer: you'll need to use MSAL.js from the Angular app to do authentication with implicit flow. The API needs to use JWT authentication. Commented Jun 4, 2019 at 11:19
  • Please go through digital-moves.eu/2018/07/19/… Commented Jun 6, 2019 at 7:15

1 Answer 1

1

I have achieved this few months, forgot to share the approach.

Approach 1: Use ADAL.Js in your angular APP, it can establish direct integration between Azure AD & Angular.

Approach 2: You can use package "angular-auth-oidc-client" this is a very wonderful package and gives more functionality like [ refresh token, silent renew ]

I have used approach-2 and able to implement the authentication & authorization using Azure AD.

Thanks for your support.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.