Table of Contents

Class MicrosoftOAuthBuilder

Namespace: XboxAuthNet.Game.OAuth
Assembly: XboxAuthNet.Game.dll

public class MicrosoftOAuthBuilder

Inheritance

objectMicrosoftOAuthBuilder

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

MicrosoftOAuthBuilder(MicrosoftOAuthClientInfo)

public MicrosoftOAuthBuilder(MicrosoftOAuthClientInfo clientInfo)

Parameters

clientInfo MicrosoftOAuthClientInfo

Properties

LoginHintSource

public ISessionSource<string> LoginHintSource { get; set; }

Property Value

ISessionSource<string>

SessionSource

public ISessionSource<MicrosoftOAuthResponse> SessionSource { get; set; }

Property Value

ISessionSource<MicrosoftOAuthResponse>

Methods

CodeFlow()

public IAuthenticator CodeFlow()

Returns

IAuthenticator

CodeFlow(Action<CodeFlowBuilder>)

public IAuthenticator CodeFlow(Action<CodeFlowBuilder> builderInvoker)

Parameters

builderInvoker Action<CodeFlowBuilder>

Returns

IAuthenticator

FromMicrosoftOAuthResponse(MicrosoftOAuthResponse)

public IAuthenticator FromMicrosoftOAuthResponse(MicrosoftOAuthResponse response)

Parameters

response MicrosoftOAuthResponse

Returns

IAuthenticator

Interactive()

public IAuthenticator Interactive()

Returns

IAuthenticator

Interactive(CodeFlowAuthorizationParameter)

public IAuthenticator Interactive(CodeFlowAuthorizationParameter parameters)

Parameters

parameters CodeFlowAuthorizationParameter

Returns

IAuthenticator

Interactive(Action<CodeFlowBuilder>)

public IAuthenticator Interactive(Action<CodeFlowBuilder> builderInvoker)

Parameters

builderInvoker Action<CodeFlowBuilder>

Returns

IAuthenticator

Interactive(Action<CodeFlowBuilder>, CodeFlowAuthorizationParameter)

public IAuthenticator Interactive(Action<CodeFlowBuilder> builderInvoker, CodeFlowAuthorizationParameter parameters)

Parameters

builderInvoker Action<CodeFlowBuilder>

parameters CodeFlowAuthorizationParameter

Returns

IAuthenticator

InteractiveWithSingleAccount()

public IAuthenticator InteractiveWithSingleAccount()

Returns

IAuthenticator

InteractiveWithSingleAccount(Action<CodeFlowBuilder>)

public IAuthenticator InteractiveWithSingleAccount(Action<CodeFlowBuilder> builderInvoker)

Parameters

builderInvoker Action<CodeFlowBuilder>

Returns

IAuthenticator

LoginHintValidator(bool)

public ISessionValidator LoginHintValidator(bool throwWhenInvalid = false)

Parameters

throwWhenInvalid bool

Returns

ISessionValidator

Signout()

public IAuthenticator Signout()

Returns

IAuthenticator

SignoutWithBrowser()

public IAuthenticator SignoutWithBrowser()

Returns

IAuthenticator

SignoutWithBrowser(Action<CodeFlowBuilder>)

public IAuthenticator SignoutWithBrowser(Action<CodeFlowBuilder> builderInvoker)

Parameters

builderInvoker Action<CodeFlowBuilder>

Returns

IAuthenticator

Silent()

public IAuthenticator Silent()

Returns

IAuthenticator

Validator()

public ISessionValidator Validator()

Returns

ISessionValidator