Lingua

WwwAuthenticateParameters.Resource Proprietà

Definizione

Attenzione

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

Risorsa per cui richiedere ambiti. Si tratta dell'URI ID app dell'API che ha restituito l'intestazione WWW-Authenticate.

[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

Valore della proprietà

Attributi

Commenti

I client che eseguono la convalida delle risorse ,ad esempio confrontando la parte host della risorsa con un elenco di host validi noti, possono comunque usare l'indicizzatore per recuperare il valore non elaborato della risorsa/ambito.

Se viene usata una risorsa, aggiungere "/.default" per trasformarla in un ambito, ad esempio "https://graph.microsoft.com/.default" è l'ambito OAuth2 per la risorsa "https://graph.microsoft.com". MSAL funziona solo con gli ambiti.

Si applica a