Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
feature(oidc):add Oidc (#72)
Browse files Browse the repository at this point in the history
* add IClientStore、IResourceStore

* Code optimization

* feat(oidc):oidc

* feat(oidc):oidc

* feat(oidc):oidc

* feat(oidc):oidc

* feat(oidc):oidc

* feat(oidc):oidc

* feat:update client

* feat:update cache

* feat(oidc):oidc

* feat(oidc):oidc

* feat(oidc):oidc

* refactor:formatting code

* feat(oidc):oidc

* feat(oidc):remove AddAllAsync,add ResetAsync

* feat(oidc):sln

* refactor:refactor code

* refactor(code):refactor code

* refactor:refactor code

* refactor:refactor code

* fix:ReUse change to Reuse

* refactor(code):refactor code

* refactor(code):refactor code

* refactor(code):refactor code

Co-authored-by: Mayue <mayue@lonsid.cn>
  • Loading branch information
wuweilaiya and Mayue authored Jun 20, 2022
1 parent 8ed77e9 commit f53f6af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ namespace Masa.BuildingBlocks.Authentication.Oidc.Models.Constans;
public class GrantTypes
{
public static ICollection<string> Implicit =>
new[] { GrantType.Implicit };
new[] { GrantType.IMPLICIT };

public static ICollection<string> ImplicitAndClientCredentials =>
new[] { GrantType.Implicit, GrantType.ClientCredentials };
new[] { GrantType.IMPLICIT, GrantType.CLIENT_CREDENTIALS };

public static ICollection<string> Code =>
new[] { GrantType.AuthorizationCode };
new[] { GrantType.AUTHORIZATION_CODE };

public static ICollection<string> CodeAndClientCredentials =>
new[] { GrantType.AuthorizationCode, GrantType.ClientCredentials };
new[] { GrantType.AUTHORIZATION_CODE, GrantType.CLIENT_CREDENTIALS };

public static ICollection<string> Hybrid =>
new[] { GrantType.Hybrid };
new[] { GrantType.HYBRID };

public static ICollection<string> HybridAndClientCredentials =>
new[] { GrantType.Hybrid, GrantType.ClientCredentials };
new[] { GrantType.HYBRID, GrantType.CLIENT_CREDENTIALS };

public static ICollection<string> ClientCredentials =>
new[] { GrantType.ClientCredentials };
new[] { GrantType.CLIENT_CREDENTIALS };

public static ICollection<string> ResourceOwnerPassword =>
new[] { GrantType.ResourceOwnerPassword };
new[] { GrantType.RESOURCE_OWNER_PASSWORD };

public static ICollection<string> ResourceOwnerPasswordAndClientCredentials =>
new[] { GrantType.ResourceOwnerPassword, GrantType.ClientCredentials };
new[] { GrantType.RESOURCE_OWNER_PASSWORD, GrantType.CLIENT_CREDENTIALS };

public static ICollection<string> DeviceFlow =>
new[] { GrantType.DeviceFlow };
new[] { GrantType.DEVICE_FLOW };
}

0 comments on commit f53f6af

Please sign in to comment.