/// <summary> /// Initializes a new instance of the <see cref="AuthController"/> class. /// </summary> /// <param name="authNFlow">The authentication flow.</param> /// <param name="authManager">The auth manager.</param> public AuthController( IAuthenticationFlow authNFlow, IAuthManager authManager) { this.authNFlow = authNFlow; this.authManager = authManager; }
/// <summary> /// Authenticates the client. /// </summary> /// <param name="authenticationFlow">The authentication flow which will be used to authenticate on REST API.</param> public void Authenticate(IAuthenticationFlow authenticationFlow) { var info = authenticationFlow.Authenticate(); m_accessToken = info.AccessToken; InstanceUrl = info.InstanceUrl; IsAuthenticated = true; }