GoogleOAuth2AuthenticatedContext Constructor
Namespace: Microsoft.Owin.Security.Google
Assembly: Microsoft.Owin.Security.Google (in Microsoft.Owin.Security.Google.dll)
Overload List
Name | Description | |
---|---|---|
GoogleOAuth2AuthenticatedContext(IOwinContext, JObject, JObject) | Initializes a GoogleOAuth2AuthenticatedContext |
|
GoogleOAuth2AuthenticatedContext(IOwinContext, JObject, String, String, String) | Initializes a GoogleOAuth2AuthenticatedContext |
See Also
GoogleOAuth2AuthenticatedContext Class
Microsoft.Owin.Security.Google Namespace
Return to top
GoogleOAuth2AuthenticatedContext Constructor (IOwinContext, JObject, JObject)
Initializes a GoogleOAuth2AuthenticatedContext
Syntax
public GoogleOAuth2AuthenticatedContext(
IOwinContext context,
JObject user,
JObject tokenResponse
)
public:
GoogleOAuth2AuthenticatedContext(
IOwinContext^ context,
JObject^ user,
JObject^ tokenResponse
)
new :
context:IOwinContext *
user:JObject *
tokenResponse:JObject -> GoogleOAuth2AuthenticatedContext
Public Sub New (
context As IOwinContext,
user As JObject,
tokenResponse As JObject
)
Parameters
context
Type: Microsoft.Owin.IOwinContextThe OWIN environment
user
Type: Newtonsoft.Json.Linq.JObjectThe JSON-serialized Google user info
tokenResponse
Type: Newtonsoft.Json.Linq.JObjectThe JSON-serialized token response Google
Return to top
GoogleOAuth2AuthenticatedContext Constructor (IOwinContext, JObject, String, String, String)
Initializes a GoogleOAuth2AuthenticatedContext
Syntax
public GoogleOAuth2AuthenticatedContext(
IOwinContext context,
JObject user,
string accessToken,
string refreshToken,
string expires
)
public:
GoogleOAuth2AuthenticatedContext(
IOwinContext^ context,
JObject^ user,
String^ accessToken,
String^ refreshToken,
String^ expires
)
new :
context:IOwinContext *
user:JObject *
accessToken:string *
refreshToken:string *
expires:string -> GoogleOAuth2AuthenticatedContext
Public Sub New (
context As IOwinContext,
user As JObject,
accessToken As String,
refreshToken As String,
expires As String
)
Parameters
context
Type: Microsoft.Owin.IOwinContextThe OWIN environment
user
Type: Newtonsoft.Json.Linq.JObjectThe JSON-serialized Google user info
accessToken
Type: System.StringGoogle OAuth 2.0 access token
refreshToken
Type: System.StringGoolge OAuth 2.0 refresh token
expires
Type: System.StringSeconds until expiration
Return to top