Class MsalOAuthBuilder
Namespace: XboxAuthNet.Game.Msal
Assembly: XboxAuthNet.Game.Msal.dll
public class MsalOAuthBuilder
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
MsalOAuthBuilder(IPublicClientApplication)
public MsalOAuthBuilder(IPublicClientApplication app)
Parameters
Properties
LoginHintSource
public ISessionSource<string> LoginHintSource { get; set; }
Property Value
ISessionSource<string>
Scopes
public string[] Scopes { get; set; }
Property Value
string[]
SessionSource
public ISessionSource<MicrosoftOAuthResponse> SessionSource { get; set; }
Property Value
ISessionSource<MicrosoftOAuthResponse>
Methods
ClearSession()
public IAuthenticator ClearSession()
Returns
IAuthenticator
CodeFlow()
public IAuthenticator CodeFlow()
Returns
IAuthenticator
DeviceCode(Func<DeviceCodeResult, Task>)
public IAuthenticator DeviceCode(Func<DeviceCodeResult, Task> deviceResultCallback)
Parameters
deviceResultCallback Func<DeviceCodeResult, Task>
Returns
IAuthenticator
EmbeddedWebView()
public IAuthenticator EmbeddedWebView()
Returns
IAuthenticator
FromResult(AuthenticationResult)
public IAuthenticator FromResult(AuthenticationResult result)
Parameters
result AuthenticationResult
Returns
IAuthenticator
Interactive()
public IAuthenticator Interactive()
Returns
IAuthenticator
Interactive(Action<AcquireTokenInteractiveParameterBuilder>)
public IAuthenticator Interactive(Action<AcquireTokenInteractiveParameterBuilder> builderInvoker)
Parameters
builderInvoker Action<AcquireTokenInteractiveParameterBuilder>
Returns
IAuthenticator
InteractiveWithSingleAccount()
public IAuthenticator InteractiveWithSingleAccount()
Returns
IAuthenticator
LoginHintValidator(bool)
public ISessionValidator LoginHintValidator(bool throwWhenInvalid = false)
Parameters
throwWhenInvalid bool
Returns
ISessionValidator
Silent()
public IAuthenticator Silent()
Returns
IAuthenticator
SystemBrowser()
public IAuthenticator SystemBrowser()
Returns
IAuthenticator