Base solution for your next web application
Open Closed

AAD Token for Microsoft Graph APIs #9579


User avatar
0
ravindrapatail created

We are using ABPZero v7.1.0.0 + Angular

We have been using builtin support for OpenID to allow users to authenticate with our site using AAD. We found that, ABP just uses AAD for authentication but then ABP issues it's own token issued by the TokenAuthController.

We would like to uss AAD token for functionlites to access micrsoft graph apis. please any guidance on how to implement this?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    The token retrieved from AAD is not stored locally in AspNet Zero app. There is an active feature request, see https://github.com/aspnetzero/aspnet-zero-core/issues/973.

    If this is urgent for you, you can save retrieved tokens and use it when necessary.

  • User Avatar
    0
    ravindrapatail created

    Thanks you @ismcagdas, Yes this is very urgent for us, we tried hard diffrent settings using diffrent posts but somehow not able to get AAD token. Please Note that we are using OpenID as external login provider Can you please guide us ? which class and which method will return AAD Token and appropriate place to write code to save this AAD token to DB table.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    OpenId token is retrieved here in the Angular app and then it is sent to server here. So, you can save it to database on the server side.