Class AuthenticationRecord

java.lang.Object
com.azure.identity.AuthenticationRecord

public final class AuthenticationRecord extends Object

Authentication Record represents the account information of the authenticated account. This is helpful in scenarios where applications require brokered authentication via DeviceCodeCredential or InteractiveBrowserCredential.

Authentication record is returned when DeviceCodeCredential.authenticate() or InteractiveBrowserCredential.authenticate() api is invoked. The returned auth record can be stored/persisted in the user application. Further, this record can be configured on the DeviceCodeCredentialBuilder.authenticationRecord(AuthenticationRecord) or InteractiveBrowserCredentialBuilder.authenticationRecord(AuthenticationRecord) to proactively indicate that a previously authenticated account should be used from the persisted cache instead of authenticating again.

See Also: