Creates an instance of DeviceCodeCredential with the details needed to initiate the device code authorization flow with Azure Active Directory. Creates an instance of DeviceCodeCredential with the details needed to initiate the device code authorization flow with Azure Active Directory.
Authenticates with Azure Active Directory and returns an access token if successful. If authentication cannot be performed at this time, this method may return null. If an error occurs during authentication, an AuthenticationError containing failure details will be thrown.
If the token can't be retrieved silently, this method will require user interaction to retrieve the token.
The list of scopes for which the token will have access.
The options used to configure any requests this TokenCredential implementation might make.
Authenticates with Azure Active Directory and returns an access token if successful. If authentication cannot be performed at this time, this method may return null. If an error occurs during authentication, an AuthenticationError containing failure details will be thrown.
If the user provided the option disableAutomaticAuthentication
,
once the token can't be retrieved silently,
this method won't attempt to request user interaction to retrieve the token.
Generated using TypeDoc
Enables authentication to Azure Active Directory using a device code that the user can enter into https://microsoft.com/devicelogin.