oidc reloaded
This commit is contained in:
parent
adfaa1a587
commit
c65985477e
22 changed files with 558 additions and 255 deletions
|
|
@ -3,7 +3,7 @@ using Microsoft.AspNet.Http;
|
|||
|
||||
namespace Yavsc.Auth
|
||||
{
|
||||
public static class GoogleDefaults
|
||||
public static class YavscGoogleDefaults
|
||||
{
|
||||
public const string AuthenticationScheme = "Google";
|
||||
|
||||
|
|
@ -17,19 +17,19 @@ namespace Yavsc.Auth
|
|||
/// <summary>
|
||||
/// Configuration options for <see cref="GoogleMiddleware"/>.
|
||||
/// </summary>
|
||||
public class GoogleOptions : OAuthOptions
|
||||
public class YavscGoogleOptions : OAuthOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new <see cref="GoogleOptions"/>.
|
||||
/// Initializes a new <see cref="YavscGoogleOptions"/>.
|
||||
/// </summary>
|
||||
public GoogleOptions()
|
||||
public YavscGoogleOptions()
|
||||
{
|
||||
AuthenticationScheme = GoogleDefaults.AuthenticationScheme;
|
||||
AuthenticationScheme = YavscGoogleDefaults.AuthenticationScheme;
|
||||
DisplayName = AuthenticationScheme;
|
||||
CallbackPath = new PathString("/signin-google");
|
||||
AuthorizationEndpoint = GoogleDefaults.AuthorizationEndpoint;
|
||||
TokenEndpoint = GoogleDefaults.TokenEndpoint;
|
||||
UserInformationEndpoint = GoogleDefaults.UserInformationEndpoint;
|
||||
AuthorizationEndpoint = YavscGoogleDefaults.AuthorizationEndpoint;
|
||||
TokenEndpoint = YavscGoogleDefaults.TokenEndpoint;
|
||||
UserInformationEndpoint = YavscGoogleDefaults.UserInformationEndpoint;
|
||||
Scope.Add("openid");
|
||||
Scope.Add("profile");
|
||||
Scope.Add("email");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue