예제 #1
0
 public static Guid CreateGuid <TScopeClaims, TScecrets>(this AbstractScopeHandle <TScopeClaims, TScecrets> scope
                                                         )
     where TScopeClaims : class
     where TScecrets : class
 {
     return(GuidGenerator.CreateGuid(ScopeConstants.Namespace, scope.Name));
 }
 public static Guid CreateGuid <TScopes>(this AbstractConsentHandle <TScopes> consent) where TScopes : class
 {
     return(GuidGenerator.CreateGuid(ConsentConstants.Namespace, consent.ClientId, consent.Subject));
 }
 public static Guid CreateGuid <TClaimIdentityRecords, TRequestedScopes>(this AbstractAuthorizationCodeHandle <TClaimIdentityRecords, TRequestedScopes> codeHandle)
     where TClaimIdentityRecords : class
     where TRequestedScopes : class
 {
     return(GuidGenerator.CreateGuid(AuthorizationCodeConstants.Namespace, codeHandle.Key));
 }
예제 #4
0
 public static Guid ScopeNameToGuid(this string name)
 {
     return(GuidGenerator.CreateGuid(ScopeConstants.Namespace, name));
 }
 public static Guid CreateGuid(this ITokenHandle tokenHandle)
 {
     return(GuidGenerator.CreateGuid(TokenConstants.Namespace, tokenHandle.Key));
 }
예제 #6
0
 public static Guid CreateGuid(this IClientHandle client, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, client.ClientId));
 }
 public static Guid CreateGuid(this string key, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, key));
 }
예제 #8
0
 public static Guid ClientIdToGuid(this string clientId, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, clientId));
 }
예제 #9
0
 public static Guid CreateGuid(this IClientHandle client)
 {
     return(GuidGenerator.CreateGuid(ClientConstants.Namespace, client.ClientId));
 }
예제 #10
0
 public static Guid CreateGuid(this IIdentityServerUserHandle userHandle, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, userHandle.UserId));
 }
예제 #11
0
 public static Guid UserIdToGuid(this string userId, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, userId));
 }
예제 #12
0
 public static Guid CreateGuid(this IIdentityServerUserHandle userHandle)
 {
     return(GuidGenerator.CreateGuid(IdentityServerUserConstants.Namespace, userHandle.UserId));
 }