/// <summary> /// Initializes a new instance of <see cref="AccessTokenResult"/>. /// </summary> /// <param name="status">The status of the result.</param> /// <param name="token">The <see cref="AccessToken"/> in case it was successful.</param> /// <param name="interactiveRequestUrl">The redirect uri to go to for provisioning the token with <see cref="NavigationManagerExtensions.NavigateToLogin(NavigationManager, string, InteractiveRequestOptions)"/>.</param> /// <param name="interactiveRequest">The <see cref="InteractiveRequestOptions"/> containing the parameters for the interactive authentication.</param> public AccessTokenResult(AccessTokenResultStatus status, AccessToken token, string interactiveRequestUrl, InteractiveRequestOptions interactiveRequest) { Status = status; _token = token; InteractiveRequestUrl = interactiveRequestUrl; InteractionOptions = interactiveRequest; }
/// <summary> /// Initializes a new instance of <see cref="AccessTokenResult"/>. /// </summary> /// <param name="status">The status of the result.</param> /// <param name="token">The <see cref="AccessToken"/> in case it was successful.</param> /// <param name="redirectUrl">The redirect uri to go to for provisioning the token.</param> public AccessTokenResult(AccessTokenResultStatus status, AccessToken token, string redirectUrl) { Status = status; _token = token; RedirectUrl = redirectUrl; }
/// <summary> /// Initializes a new instance of <see cref="AccessTokenResult"/>. /// </summary> /// <param name="authenticationService">The authentication service to use.</param> /// <param name="status">The status of the result.</param> /// <param name="token">The <see cref="AccessToken"/> in case it was successful.</param> public AccessTokenResult(IAuthenticationService authenticationService, AccessTokenResultStatus status, AccessToken token) { Status = status; _token = token; _authenticationService = authenticationService; }