WwwAuthenticateParameters.Scopes Property

Definition

Caution

The client apps should know which scopes to request for.

Scopes to request. If it's not provided by the web API, it's computed from the Resource.

[System.Obsolete("The client apps should know which scopes to request for.", true)]
public System.Collections.Generic.IEnumerable<string> Scopes { get; set; }
[<System.Obsolete("The client apps should know which scopes to request for.", true)>]
member this.Scopes : seq<string> with get, set
Public Property Scopes As IEnumerable(Of String)

Property Value

Attributes

Remarks

Clients that perform resource validation (e.g. by comparing the host part of the resource against a list of known good hosts), can still use the indexer to retrieve the raw value of the resource / scope.

If a resource is used, add "/.default" to it to transform it into a scope, e.g. "https://graph.microsoft.com/.default" is the OAuth2 scope for "https://graph.microsoft.com" resource. MSAL only works with scopes.

Applies to