public class DeviceCodeFlowParameters extends Object
PublicClientApplication.acquireToken(DeviceCodeFlowParameters)
. For more details,
see https://aka.ms/msal4j-device-codeModifier and Type | Class and Description |
---|---|
static class |
DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder |
Modifier and Type | Method and Description |
---|---|
static DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder |
builder(Set<String> scopes,
Consumer<DeviceCode> deviceCodeConsumer)
Builder for
DeviceCodeFlowParameters |
ClaimsRequest |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
|
@NonNull Consumer<DeviceCode> |
deviceCodeConsumer()
Receives the device code returned from the first step of Oauth2.0 device code flow.
|
Map<String,String> |
extraHttpHeaders()
Adds additional headers to the token request
|
Map<String,String> |
extraQueryParameters()
Adds additional query parameters to the token request
|
@NonNull Set<String> |
scopes()
Scopes to which the application is requesting access to.
|
String |
tenant()
Overrides the tenant value in the authority URL for this request
|
public static DeviceCodeFlowParameters.DeviceCodeFlowParametersBuilder builder(Set<String> scopes, Consumer<DeviceCode> deviceCodeConsumer)
DeviceCodeFlowParameters
scopes
- scopes application is requesting access todeviceCodeConsumer
- Consumer
of DeviceCode
@NonNull public @NonNull Set<String> scopes()
@NonNull public @NonNull Consumer<DeviceCode> deviceCodeConsumer()
DeviceCode.verificationUri
and the DeviceCode.userCode
should be shown
to the end user.
For more details, see https://aka.ms/msal4j-device-code
public ClaimsRequest claims()
public Map<String,String> extraHttpHeaders()
public Map<String,String> extraQueryParameters()
public String tenant()
Copyright © 2013–2023. All rights reserved.