C# Class SimpleAuth.Providers.GoogleApi

Inheritance: OAuthApi
Show file Open project: Clancey/SimpleAuth Class Usage Examples

Public Methods

Method Description
CleanseClientId ( string clientId ) : string
GetUserInfo ( bool forceRefresh = false ) : Task
GoogleApi ( string identifier, string clientId, string clientSecret, HttpMessageHandler handler = null ) : System

Protected Methods

Method Description
CreateAuthenticator ( ) : WebAuthenticator
GetAccountFromAuthCode ( WebAuthenticator authenticator, string identifier ) : Task

Method Details

CleanseClientId() public static method

public static CleanseClientId ( string clientId ) : string
clientId string
return string

CreateAuthenticator() protected method

protected CreateAuthenticator ( ) : WebAuthenticator
return WebAuthenticator

GetAccountFromAuthCode() protected method

protected GetAccountFromAuthCode ( WebAuthenticator authenticator, string identifier ) : Task
authenticator WebAuthenticator
identifier string
return Task

GetUserInfo() public method

public GetUserInfo ( bool forceRefresh = false ) : Task
forceRefresh bool
return Task

GoogleApi() public method

public GoogleApi ( string identifier, string clientId, string clientSecret, HttpMessageHandler handler = null ) : System
identifier string
clientId string
clientSecret string
handler System.Net.Http.HttpMessageHandler
return System