public class InteractiveRequestParameters extends Object
PublicClientApplication.acquireToken(InteractiveRequestParameters).
For more details, see https://aka.ms/msal4j-interactive-request.
| Modifier and Type | Class and Description |
|---|---|
static class |
InteractiveRequestParameters.InteractiveRequestParametersBuilder |
| Modifier and Type | Method and Description |
|---|---|
static InteractiveRequestParameters.InteractiveRequestParametersBuilder |
builder(URI redirectUri) |
ClaimsRequest |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
|
String |
claimsChallenge() |
String |
domainHint()
Provides a hint about the tenant or domain that the user should use to sign in.
|
Map<String,String> |
extraHttpHeaders()
Adds additional headers to the token request
|
Map<String,String> |
extraQueryParameters()
Adds additional query parameters to the token request
|
int |
httpPollingTimeoutInSeconds()
The amount of time in seconds that the library will wait for an authentication result.
|
boolean |
instanceAware()
If set to true, the authorization result will contain the authority for the user's home cloud, and this authority
will be used for the token request instead of the authority set in the application.
|
String |
loginHint()
Can be used to pre-fill the username/email address field of the sign-in page for the user,
if you know the username/email address ahead of time.
|
Prompt |
prompt()
Indicate the type of user interaction that is required.
|
PopParameters |
proofOfPossession() |
@NonNull URI |
redirectUri()
Redirect URI where MSAL will listen to for the authorization code returned by Azure AD.
|
Set<String> |
scopes()
Scopes that the application is requesting access to and the user will consent to.
|
SystemBrowserOptions |
systemBrowserOptions()
Sets
SystemBrowserOptions to be used by the PublicClientApplication |
String |
tenant()
Overrides the tenant value in the authority URL for this request
|
long |
windowHandle()
The parent window handle used to open UI elements with the correct parent
For browser scenarios and Windows console applications, this value should not need to be set
For Windows console applications, MSAL Java will attempt to discover the console's window handle if this parameter is not set
For scenarios where MSAL Java is responsible for opening UI elements (such as when using MSALRuntime), this parameter is required and an exception will be thrown if not set
|
public static InteractiveRequestParameters.InteractiveRequestParametersBuilder builder(URI redirectUri)
@NonNull public @NonNull URI redirectUri()
public ClaimsRequest claims()
public Set<String> scopes()
public Prompt prompt()
public String loginHint()
public String domainHint()
public SystemBrowserOptions systemBrowserOptions()
SystemBrowserOptions to be used by the PublicClientApplicationpublic String claimsChallenge()
public Map<String,String> extraHttpHeaders()
public Map<String,String> extraQueryParameters()
public String tenant()
public int httpPollingTimeoutInSeconds()
public boolean instanceAware()
public long windowHandle()
public PopParameters proofOfPossession()
Copyright © 2013–2024. All rights reserved.