using System.Collections.Generic; using Skoruba.IdentityServer4.Admin.BusinessLogic.Shared.Dtos.Common; namespace Skoruba.IdentityServer4.Admin.BusinessLogic.Constants { public static class ClientConsts { public static List GetSecretTypes() { var secretTypes = new List { "SharedSecret", "X509Thumbprint", "X509Name", "X509CertificateBase64" }; return secretTypes; } public static List GetStandardClaims() { //http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims var standardClaims = new List { "name", "given_name", "family_name", "middle_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "address", "updated_at" }; return standardClaims; } public static List GetGrantTypes() { var allowedGrantypes = new List { "implicit", "client_credentials", "authorization_code", "hybrid", "password", "urn:ietf:params:oauth:grant-type:device_code" }; return allowedGrantypes; } public static List GetProtocolTypes() { var protocolTypes = new List { new SelectItem("oidc", "OpenID Connect") }; return protocolTypes; } } }