WwwAuthenticateParameters.Resource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk