GoogleAuthenticationExtensions.UseGoogleAuthentication Method (IAppBuilder, String, String)
Authenticate users using Google OAuth 2.0
Namespace: Owin
Assembly: Microsoft.Owin.Security.Google (in Microsoft.Owin.Security.Google.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function UseGoogleAuthentication ( _
app As IAppBuilder, _
clientId As String, _
clientSecret As String _
) As IAppBuilder
'Usage
Dim app As IAppBuilder
Dim clientId As String
Dim clientSecret As String
Dim returnValue As IAppBuilder
returnValue = app.UseGoogleAuthentication(clientId, _
clientSecret)
public static IAppBuilder UseGoogleAuthentication(
this IAppBuilder app,
string clientId,
string clientSecret
)
[ExtensionAttribute]
public:
static IAppBuilder^ UseGoogleAuthentication(
IAppBuilder^ app,
String^ clientId,
String^ clientSecret
)
static member UseGoogleAuthentication :
app:IAppBuilder *
clientId:string *
clientSecret:string -> IAppBuilder
public static function UseGoogleAuthentication(
app : IAppBuilder,
clientId : String,
clientSecret : String
) : IAppBuilder
Parameters
- app
Type: IAppBuilder
The IAppBuilder passed to the configuration method
- clientId
Type: System.String
The google assigned client id
- clientSecret
Type: System.String
The google assigned client secret
Return Value
Type: IAppBuilder
The updated IAppBuilder
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see b8020aae-374d-46a9-bcb7-8cc2390b93b6 or 175ce3ff-9bbf-4e64-8421-faeb81a0bb51.
See Also
Reference
GoogleAuthenticationExtensions Class