You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Token acquisition methods require a []string of scopes but don't require it to contain values. If it's empty, the method will request a token for default scopes "openid offline_access profile" and return an error from AAD like
{error":"invalid_scope","error_description":"AADSTS1002012: The provided value for scope
openid offline_access profile is not valid. Client credential flows must have a scope value
with /.default suffixed to the resource identifier (application ID URI)...}
Is there a scenario in which requesting these default scopes gets a useful token? If not, please consider returning a friendlier error to callers who don't specify a scope.
The text was updated successfully, but these errors were encountered:
Token acquisition methods require a
[]string
of scopes but don't require it to contain values. If it's empty, the method will request a token for default scopes "openid offline_access profile" and return an error from AAD likeIs there a scenario in which requesting these default scopes gets a useful token? If not, please consider returning a friendlier error to callers who don't specify a scope.
The text was updated successfully, but these errors were encountered: