0
votes

I need a solution for accessing Microsoft graph api with a token which never expires for a multitenant application.

I am using frontend as react and backend as lambda function.

Actual requirement Need to connect Microsoft app (which will give access to graph api's) with project where same auth will be used by multiple users, same authentication should work until it revoked.

1
What you meant by "token never expires"? You want to keep the token lifetime as never expire? Why you want want to do that way... - Dev
its not possible out of the box solution with token lifetime . however we have implement azure function with username and password when ever it calls first call to azure function and request token - charithsuminda
I think you can use refresh token to get new access tokens when an access token is about to expire - Stanley Gong

1 Answers

1
votes

Take OAuth 2.0 auth code grant as an example.

Currently, access token lifetime cannot be configured to be permanent.

Therefore,You can Request an access token and you can Refresh the access token when it expired.