github.com/Axway/agent-sdk@v1.1.101/pkg/authz/oauth/constants.go (about) 1 package oauth 2 3 // Provider types 4 const ( 5 Generic ProviderType = iota + 1 6 Okta 7 KeyCloak 8 ) 9 10 // Provider type string const 11 const ( 12 TypeGeneric = "generic" 13 TypeOkta = "okta" 14 TypeKeycloak = "keycloak" 15 ) 16 17 const ( 18 defaultServerName = "OAuth server" 19 20 hdrAuthorization = "Authorization" 21 hdrContentType = "Content-Type" 22 23 mimeApplicationFormURLEncoded = "application/x-www-form-urlencoded" 24 mimeApplicationJSON = "application/json" 25 26 GrantTypeAuthorizationCode = "authorization_code" 27 GrantTypeImplicit = "implicit" 28 GrantTypeClientCredentials = "client_credentials" 29 30 AuthResponseToken = "token" 31 AuthResponseCode = "code" 32 33 assertionTypeJWT = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer" 34 35 metaGrantType = "grant_type" 36 metaClientID = "client_id" 37 metaClientSecret = "client_secret" 38 metaScope = "scope" 39 metaClientAssertionType = "client_assertion_type" 40 metaClientAssertion = "client_assertion" 41 42 TLSClientAuthSubjectDN = "tls_client_auth_subject_dn" 43 TLSClientAuthSanDNS = "tls_client_auth_san_dns" 44 TLSClientAuthSanEmail = "tls_client_auth_san_email" 45 TLSClientAuthSanIP = "tls_client_auth_san_ip" 46 TLSClientAuthSanURI = "tls_client_auth_san_uri" 47 )