InteractiveBrowserCredential Class
- java.lang.Object
- com.azure.identity.InteractiveBrowserCredential
Implements
public class InteractiveBrowserCredential
implements TokenCredential
An AAD credential that acquires a token for an AAD application by prompting the login in the default browser. When authenticated, the oauth2 flow will notify the credential of the authentication code through the reply URL.
The application to authenticate to must have delegated user login permissions and have http://localhost:{port}
listed as a valid reply URL.
Method Summary
Modifier and Type | Method and Description |
---|---|
authenticate()
Interactively authenticates a user via the default browser. |
|
authenticate(TokenRequestContext request)
Interactively authenticates a user via the default browser. |
|
getToken(TokenRequestContext request) | |
AccessToken | getTokenSync(TokenRequestContext request) |
Methods inherited from java.lang.Object
Method Details
authenticate
public Mono
Interactively authenticates a user via the default browser.
Returns:
authenticate
public Mono
Interactively authenticates a user via the default browser.
Parameters:
Returns:
getToken
public Mono
Parameters:
getTokenSync
public AccessToken getTokenSync(TokenRequestContext request)
Parameters: