コード例 #1
0
ファイル: GoogleAuthProvider.cs プロジェクト: flyeven/AngJobs
 public Task ReturnEndpoint(GooglePlusAuthenticatedContext context)
 {
     return Task.FromResult<object>(null);
 }
コード例 #2
0
ファイル: GoogleAuthProvider.cs プロジェクト: flyeven/AngJobs
 public override Task Authenticated(GooglePlusAuthenticatedContext context)
 {
     context.Identity.AddClaim(new Claim("ExternalAccessToken", context.AccessToken));
     return Task.FromResult<object>(null);
 }
コード例 #3
0
 /// <summary>
 /// Invoked whenever Google+ successfully authenticates a user
 /// </summary>
 /// <param name="context">Contains information about the login session as well as the user <see cref="System.Security.Claims.ClaimsIdentity"/>.</param>
 /// <returns>A <see cref="Task"/> representing the completed operation.</returns>
 public virtual Task Authenticated(GooglePlusAuthenticatedContext context)
 {
     return(OnAuthenticated(context));
 }
コード例 #4
0
ファイル: GoogleAuthProvider.cs プロジェクト: flyeven/AngJobs
 public void ApplyRedirect(GooglePlusAuthenticatedContext context)
 {
     context.Response.Redirect(context.Properties.RedirectUri);
 }
 /// <summary>
 /// Invoked whenever Google+ successfully authenticates a user
 /// </summary>
 /// <param name="context">Contains information about the login session as well as the user <see cref="System.Security.Claims.ClaimsIdentity"/>.</param>
 /// <returns>A <see cref="Task"/> representing the completed operation.</returns>
 public virtual Task Authenticated(GooglePlusAuthenticatedContext context)
 {
     return OnAuthenticated(context);
 }