Skip to content

Commit

Permalink
added DeviceAuthURL to AzureADEndpoint
Browse files Browse the repository at this point in the history
The Microsoft identity platform supports the device authorization grant:

https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-device-code

This PR adds the "https://#.microsoftonline.com/{tenant}/oauth2/v2.0/devicecode" DeviceAuthURL to the AzureADEndpoint.
  • Loading branch information
enrichman committed Feb 15, 2024
1 parent ebe81ad commit f7cd8ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions microsoft/microsoft.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func AzureADEndpoint(tenant string) oauth2.Endpoint {
tenant = "common"
}
return oauth2.Endpoint{
AuthURL: "https://#.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
TokenURL: "https://#.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
AuthURL: "https://#.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
TokenURL: "https://#.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
DeviceAuthURL: "https://#.microsoftonline.com/" + tenant + "/oauth2/v2.0/devicecode",
}
}

0 comments on commit f7cd8ae

Please # to comment.