AcquireTokenParameterBuilderExtensions.WithReservedScopes Method
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.
Controls whether MSAL sends the reserved offline_access scope while continuing to
send openid and profile. Only applicable to authorization code redemption flows.
public static Microsoft.Identity.Client.AcquireTokenByAuthorizationCodeParameterBuilder WithReservedScopes(this Microsoft.Identity.Client.AcquireTokenByAuthorizationCodeParameterBuilder builder, bool offlineAccessScope);
static member WithReservedScopes : Microsoft.Identity.Client.AcquireTokenByAuthorizationCodeParameterBuilder * bool -> Microsoft.Identity.Client.AcquireTokenByAuthorizationCodeParameterBuilder
<Extension()>
Public Function WithReservedScopes (builder As AcquireTokenByAuthorizationCodeParameterBuilder, offlineAccessScope As Boolean) As AcquireTokenByAuthorizationCodeParameterBuilder
Parameters
The builder to chain .With methods.
- offlineAccessScope
- Boolean
Set to false to omit offline_access. Set to true
to preserve the default MSAL behavior of sending all reserved scopes.
Returns
The builder to chain .With methods.