Skip to content

Commit 9ae5712

Browse files
committed
Update OAuth token endpoint in graph API handler constants
1 parent 8db2297 commit 9ae5712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apihandlers/graph/graph_api_handler_constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package graph
55
const (
66
APIName = "microsoft graph" // APIName: represents the name of the API.
77
DefaultBaseDomain = "graph.microsoft.com" // DefaultBaseDomain: represents the base domain for the graph instance.
8-
OAuthTokenEndpoint = "graph.microsoft.com" // OAuthTokenEndpoint: The endpoint to obtain an OAuth token.
9-
BearerTokenEndpoint = "graph.microsoft.com" // BearerTokenEndpoint: The endpoint to obtain a bearer token.
8+
OAuthTokenEndpoint = "/oauth2/v2.0/token" // OAuthTokenEndpoint: The endpoint to obtain an OAuth token.
9+
BearerTokenEndpoint = "" // BearerTokenEndpoint: The endpoint to obtain a bearer token.
1010
TokenRefreshEndpoint = "graph.microsoft.com" // TokenRefreshEndpoint: The endpoint to refresh an existing token.
1111
TokenInvalidateEndpoint = "graph.microsoft.com" // TokenInvalidateEndpoint: The endpoint to invalidate an active token.
1212
BearerTokenAuthenticationSupport = true // BearerTokenAuthSuppport: A boolean to indicate if the API supports bearer token authentication.

0 commit comments

Comments
 (0)