public class InteractiveBrowserCredential extends Object implements com.azure.core.credential.TokenCredential
The application to authenticate to must have delegated user login permissions and have http://localhost:{port}
listed as a valid reply URL.
| Modifier and Type | Method and Description |
|---|---|
Mono<AuthenticationRecord> |
authenticate()
Interactively authenticates a user via the default browser.
|
Mono<AuthenticationRecord> |
authenticate(com.azure.core.credential.TokenRequestContext request)
Interactively authenticates a user via the default browser.
|
Mono<com.azure.core.credential.AccessToken> |
getToken(com.azure.core.credential.TokenRequestContext request) |
public Mono<com.azure.core.credential.AccessToken> getToken(com.azure.core.credential.TokenRequestContext request)
getToken in interface com.azure.core.credential.TokenCredentialpublic Mono<AuthenticationRecord> authenticate(com.azure.core.credential.TokenRequestContext request)
request - The details of the authentication request.AuthenticationRecord which can be used to silently authenticate the account
on future execution if persistent caching was configured via
InteractiveBrowserCredentialBuilder.tokenCachePersistenceOptions(TokenCachePersistenceOptions)
when credential was instantiated.public Mono<AuthenticationRecord> authenticate()
AuthenticationRecord which can be used to silently authenticate the account
on future execution if persistent caching was enabled via
InteractiveBrowserCredentialBuilder.tokenCachePersistenceOptions(TokenCachePersistenceOptions)
when credential was instantiated.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.