Microsoft Graph API Authentication

Waqiur Rahman 0 Reputation points
2024-10-30T13:20:46.07+00:00

Hello, I am creating a portal to create meeting for microsoft teams and using graph api but to get the refresh token we'll have to login for which I'd need to share the microsoft account credentials to other members which i dont want. So is there any way i can use the credentials from database to get the refresh token and use that to access graph api.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,371 Reputation points
    2024-10-31T05:55:57.8133333+00:00

    Hi @Waqiur Rahman

    Refresh tokens are bound to users, and users must log in to the target application to obtain refresh tokens.

    If you do not want to share your account credentials with other members, you can use the authorization code flow to log in and generate an authorization code, then share the authorization code, and other members will be able to use the authorization code to request subsequent access tokens and refresh tokens.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.