Skip to content

Commit f7cd8ae

Browse files
committed
added DeviceAuthURL to AzureADEndpoint
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://login.microsoftonline.com/{tenant}/oauth2/v2.0/devicecode" DeviceAuthURL to the AzureADEndpoint.
1 parent ebe81ad commit f7cd8ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

microsoft/microsoft.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ func AzureADEndpoint(tenant string) oauth2.Endpoint {
2525
tenant = "common"
2626
}
2727
return oauth2.Endpoint{
28-
AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
29-
TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
28+
AuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/authorize",
29+
TokenURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/token",
30+
DeviceAuthURL: "https://login.microsoftonline.com/" + tenant + "/oauth2/v2.0/devicecode",
3031
}
3132
}

0 commit comments

Comments
 (0)