Show / Hide Table of Contents

Interface IDeviceOAuth2

Interface for device based OAuth2 flow

Inherited Members
IDeviceOAuthInfo.WaitingForConfirmation
IDeviceOAuthInfo.EndPoint
IDeviceOAuthInfo.Scope
IDeviceOAuthInfo.ClientId
IDeviceOAuthInfo.CheckToken(TokenInfo)
IDeviceOAuthInfo.CheckToken(TokenInfo, CancellationToken)
IDeviceOAuthInfo.GetProfile(TokenInfo)
IDeviceOAuthInfo.GetProfile(TokenInfo, CancellationToken)
Namespace: DeviceOAuth2
Assembly: DeviceOAuth2.dll
Syntax
public interface IDeviceOAuth2 : IDeviceOAuthInfo

Methods

| Improve this Doc View Source

Authorize(TokenInfo)

Starts the authorization flow.

Declaration
Task<TokenInfo> Authorize(TokenInfo token)
Parameters
Type Name Description
TokenInfo token

An existing token that can be checked for needing to be refreshed. Pass null if the app has never been authorized.

Returns
Type Description
Task<TokenInfo>

An auth token. If the token parameter is still valid it will be returned

| Improve this Doc View Source

Authorize(TokenInfo, CancellationToken)

Starts the authorization flow.

Declaration
Task<TokenInfo> Authorize(TokenInfo token, CancellationToken cancelToken)
Parameters
Type Name Description
TokenInfo token

An existing token that can be checked for needing to be refreshed. Pass null if the app has never been authorized.

CancellationToken cancelToken

Cancellation token

Returns
Type Description
Task<TokenInfo>

An auth token. If the token parameter is still valid it will be returned

Events

| Improve this Doc View Source

PromptUser

Event raised when the auth confirmation url and code are known. Display these to the user and tell them to enter the code at the referenced web address.

Declaration
event EventHandler<AuthInfo> PromptUser
Event Type
Type Description
EventHandler<AuthInfo>
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX