次の方法で共有


WwwAuthenticateParameters.Resource Property

Definition

Caution

The client apps should know which App ID URI it requests scopes for.

Resource for which to request scopes. This is the App ID URI of the API that returned the WWW-Authenticate header.

[System.Obsolete("The client apps should know which App ID URI it requests scopes for.", true)]
public string Resource { get; set; }
[<System.Obsolete("The client apps should know which App ID URI it requests scopes for.", true)>]
member this.Resource : string with get, set
Public Property Resource As 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