Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 8
0
 public static Guid ClientIdToGuid(this string clientId, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, clientId));
 }
Esempio n. 9
0
 public static Guid CreateGuid(this IClientHandle client)
 {
     return(GuidGenerator.CreateGuid(ClientConstants.Namespace, client.ClientId));
 }
Esempio n. 10
0
 public static Guid CreateGuid(this IIdentityServerUserHandle userHandle, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, userHandle.UserId));
 }
Esempio n. 11
0
 public static Guid UserIdToGuid(this string userId, Guid @namespace)
 {
     return(GuidGenerator.CreateGuid(@namespace, userId));
 }
Esempio n. 12
0
 public static Guid CreateGuid(this IIdentityServerUserHandle userHandle)
 {
     return(GuidGenerator.CreateGuid(IdentityServerUserConstants.Namespace, userHandle.UserId));
 }