Share via

Endpoint url for Offline_access

Anonymous
Jan 20, 2022, 9:07 AM

hi , i need microsoft graph endpoint url for offline_access.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,378 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,295 questions
0 comments No comments
{count} vote

Accepted answer
  1. AmanpreetSingh-MSFT 56,671 Reputation points
    Jan 20, 2022, 9:26 AM

    Hi anonymous user • Thank you for reaching out.

    The offline_access is a scope required to receive refresh token and the authentication request with this scope must be sent to https://login.microsoftonline.com/your_tenant.onmicrosoft.com/oauth2/v2.0/token endpoint URL. When you redeem an authorization code in the OAuth 2.0 authorization code flow or use ROPC flow (as shown below) without offline_access scope, you'll receive only an access token from the /token endpoint. When this scope is included, both Access & Refresh tokens are returned.

    166699-image.png

    Read more: offline_access

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


1 additional answer

Sort by: Most helpful
  1. !Daniel Bradley 1,061 Reputation points MVP
    Jan 20, 2022, 9:15 AM

    Hi anonymous user. I believe you should just use the value offline_access.

    Please take a look at: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes

    When defining permissions you can just use Offline_access


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.