/// <summary> /// Set the OAuth handler. The auth API will return a URL to redirect users to login for OAuth type authentications. /// The handler need to implement the function to allow user to login and return the authentication info at the end. /// </summary> /// <param name="oauthHandler">the handler for OAuth login</param> public void SetOAuthHandler(IOAuthClientHandlerService oauthHandler) { _oauthClient = oauthHandler; }
/// <summary> /// Constructor /// </summary> public FHAuthRequest(CloudProps cloudProps) { _cloudProps = cloudProps; _oauthClient = ServiceFinder.Resolve<IOAuthClientHandlerService>(); }
/// <summary> /// Constructor /// </summary> public FHAuthRequest(CloudProps cloudProps) : base() { this.cloudProps = cloudProps; this.oauthClient = ServiceFinder.Resolve<IOAuthClientHandlerService>(); }
/// <summary> /// Constructor /// </summary> public FHAuthRequest(CloudProps cloudProps) { _cloudProps = cloudProps; _oauthClient = ServiceFinder.Resolve <IOAuthClientHandlerService>(); }