org.wso2.carbon.identity.discovery.DiscoveryConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.wso2.carbon.identity.discovery Show documentation
Show all versions of org.wso2.carbon.identity.discovery Show documentation
OpenId Connect Discovery Bundle
The newest version!
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.wso2.carbon.identity.discovery;
/**
* Contains the headers of the values to be sent in the JSON Result as specified in spec
*/
public class DiscoveryConstants {
/**
* issuer
* REQUIRED. URL using the https scheme with no query or fragment component that the OP asserts as its
* Issuer Identifier. If Issuer discovery is supported (see Section 2), this value MUST be identical to
* the issuer value returned by WebFinger. This also MUST be identical to the iss Claim value in ID
* Tokens issued from this Issuer.
*/
public static final String ISSUER = "Issuer";
/**
* authorization_endpoint
* REQUIRED. URL of the OP's OAuth 2.0 Authorization Endpoint [OpenID.Core].
*/
public static final String AUTHORIZATION_ENDPOINT = "Authorization_endpoint";
/**
* pushed_authorization_request_endpoint
* REQUIRED. URL of the OP's OAuth 2.0 Pushed Authorization Request Endpoint [OpenID.Core].
*/
public static final String PUSHED_AUTHORIZATION_REQUEST_ENDPOINT = "Pushed_authorization_request_endpoint";
/**
* token_endpoint
* URL of the OP's OAuth 2.0 Token Endpoint [OpenID.Core]. This is REQUIRED unless only the Implicit
* Flow is used.
*/
public static final String TOKEN_ENDPOINT = "Token_endpoint";
/**
* userinfo_endpoint
* RECOMMENDED. URL of the OP's UserInfo Endpoint [OpenID.Core]. This URL MUST use the https scheme and
* MAY contain port, path, and query parameter components.
*/
public static final String USERINFO_ENDPOINT = "Userinfo_endpoint";
/**
* revocation_endpoint
* RECOMMENDED. URL of the OP's Revocation Endpoint [OpenID.Core]. This URL MUST use the https scheme and
* MAY contain port, path, and query parameter components.
*/
public static final String REVOCATION_ENDPOINT = "Revocation_endpoint";
/**
* revocation_endpoint_auth_methods_supported
* OPTIONAL. JSON array containing a list of Client Authentication methods supported by this Revocation
* Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and
* private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other
* authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic
* -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].
*/
public static final String REVOCATION_ENDPOINT_AUTH_METHODS_SUPPORTED =
"Revocation_endpoint_auth_methods_supported";
/**
* introspection_endpoint
* OPTIONAL. URL of the OP's Introspection Endpoint [OpenID.Core]. This URL MUST use the https scheme and
* MAY contain port, path, and query parameter components.
*/
public static final String INTROSPECTION_ENDPOINT = "Introspection_endpoint";
/**
* introspection_endpoint_auth_methods_supported.
* OPTIONAL. JSON array containing a list of Client Authentication methods supported by this Introspection
* Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and
* private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other
* authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic
* -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].
*/
public static final String INTROSPECTION_ENDPOINT_AUTH_METHODS_SUPPORTED =
"Introspection_endpoint_auth_methods_supported";
/**
* jwks_uri
* REQUIRED. URL of the OP's JSON Web Key Set [JWK] document. This contains the signing key(s) the RP
* uses to validate signatures from the OP. The JWK Set MAY also contain the Server's encryption key(s),
* which are used by RPs to encrypt requests to the Server. When both signing and encryption keys are
* made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set
* to indicate each key's intended usage. Although some algorithms allow the same key to be used for
* both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c
* parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key
* values MUST still be present and MUST match those in the certificate.
*/
public static final String JWKS_URI = "Jwks_uri";
/**
* registration_endpoint
* RECOMMENDED. URL of the OP's Dynamic Client Registration Endpoint [OpenID.Registration].
*/
public static final String REGISTRATION_ENDPOINT = "Registration_endpoint";
/**
* scopes_supported
* RECOMMENDED. JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server
* supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some
* supported scope values even when this parameter is used, although those defined in [OpenID.Core]
* SHOULD be listed, if supported.
*/
public static final String SCOPES_SUPPORTED = "Scopes_supported";
/**
* response_types_supported
* REQUIRED. JSON array containing a list of the OAuth 2.0 response_type values that this OP supports.
* Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values.
*/
public static final String RESPONSE_TYPES_SUPPORTED = "Response_types_supported";
/**
* response_modes_supported
* OPTIONAL. JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports,
* as specified in OAuth 2.0 Multiple Response Type Encoding Practices [OAuth.Responses]. If omitted,
* the default for Dynamic OpenID Providers is ["query", "fragment"].
*/
public static final String RESPONSE_MODES_SUPPORTED = "Response_modes_supported";
/**
* grant_types_supported
* OPTIONAL. JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports.
* Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY
* support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].
*/
public static final String GRANT_TYPES_SUPPORTED = "Grant_types_supported";
/**
* acr_values_supported
* OPTIONAL. JSON array containing a list of the Authentication Context Class References that this OP
* supports.
*/
public static final String ACR_VALUES_SUPPORTED = "Acr_values_supported";
/**
* subject_types_supported
* REQUIRED. JSON array containing a list of the Subject Identifier types that this OP supports. Valid
* types include pairwise and public.
*/
public static final String SUBJECT_TYPES_SUPPORTED = "Subject_types_supported";
/**
* id_token_signing_alg_values_supported
* REQUIRED. JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP
* for the ID Token to encode the Claims in a JWT [JWT]. The algorithm RS256 MUST be included. The
* value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token
* from the Authorization Endpoint (such as when using the Authorization Code Flow).
*/
public static final String ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED = "ID_token_signing_alg_values_supported";
/**
* id_token_encryption_alg_values_supported
* OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by the
* OP for the ID Token to encode the Claims in a JWT [JWT].
*/
public static final String ID_TOKEN_ENCRYPTION_ALG_VALUES_SUPPORTED = "ID_token_encryption_alg_values_supported";
/**
* id_token_encryption_enc_values_supported
* OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by the
* OP for the ID Token to encode the Claims in a JWT [JWT].
*/
public static final String ID_TOKEN_ENCRYPTION_ENC_VALUES_SUPPORTED = "ID_token_encryption_enc_values_supported";
/**
* userinfo_signing_alg_values_supported
* OPTIONAL. JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA]
* supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.
*/
public static final String USERINFO_SIGNING_ALG_VALUES_SUPPORTED = "Userinfo_signing_alg_values_supported";
/**
* userinfo_encryption_alg_values_supported
* OPTIONAL. JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA]
* supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
*/
public static final String USERINFO_ENCRYPTION_ALG_VALUES_SUPPORTED = "Userinfo_encryption_alg_values_supported";
/**
* userinfo_encryption_enc_values_supported
* OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported
* by the UserInfo Endpoint to encode the Claims in a JWT [JWT].
*/
public static final String USERINFO_ENCRYPTION_ENC_VALUES_SUPPORTED = "Userinfo_encryption_enc_values_supported";
/**
* request_object_signing_alg_values_supported
* OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP
* for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core].
* These algorithms are used both when the Request Object is passed by value (using the request
* parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD
* support none and RS256.
*/
public static final String REQUEST_OBJECT_SIGNING_ALG_VALUES_SUPPORTED =
"Request_object_signing_alg_values_supported";
/**
* request_object_encryption_alg_values_supported
* OPTIONAL. JSON array containing a list of the JWE encryption algorithms (alg values) supported by the
* OP for Request Objects. These algorithms are used both when the Request Object is passed by value
* and when it is passed by reference.
*/
public static final String REQUEST_OBJECT_ENCRYPTION_ALG_VALUES_SUPPORTED =
"Request_object_encryption_alg_values_supported";
/**
* request_object_encryption_enc_values_supported
* OPTIONAL. JSON array containing a list of the JWE encryption algorithms (enc values) supported by the
* OP for Request Objects. These algorithms are used both when the Request Object is passed by value
* and when it is passed by reference.
*/
public static final String REQUEST_OBJECT_ENCRYPTION_ENC_VALUES_SUPPORTED =
"Request_object_encryption_enc_values_supported";
/**
* token_endpoint_auth_methods_supported
* OPTIONAL. JSON array containing a list of Client Authentication methods supported by this Token
* Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and
* private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other
* authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic
* -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].
*/
public static final String TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED = "Token_endpoint_auth_methods_supported";
/**
* token_endpoint_auth_signing_alg_values_supported
* OPTIONAL. JSON array containing a list of the JWS signing algorithms (alg values) supported by the
* Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token
* Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support
* RS256. The value none MUST NOT be used.
*/
public static final String TOKEN_ENDPOINT_AUTH_SIGNING_ALG_VALUES_SUPPORTED =
"Token_endpoint_auth_signing_alg_values_supported";
/**
* display_values_supported
* OPTIONAL. JSON array containing a list of the display parameter values that the OpenID Provider
* supports. These values are described in Section 3.1.2.1 of OpenID Connect Core 1.0 [OpenID.Core].
*/
public static final String DISPLAY_VALUES_SUPPORTED = "Display_values_supported";
/**
* claim_types_supported
* OPTIONAL. JSON array containing a list of the Claim Types that the OpenID Provider supports. These
* Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. Values defined by
* this specification are normal, aggregated, and distributed. If omitted, the implementation supports
* only normal Claims.
*/
public static final String CLAIM_TYPES_SUPPORTED = "Claim_types_supported";
/**
* claims_supported
* RECOMMENDED. JSON array containing a list of the Claim Names of the Claims that the OpenID Provider
* MAY be able to supply values for. Note that for privacy or other reasons, this might not be an
* exhaustive list.
*/
public static final String CLAIMS_SUPPORTED = "Claims_supported";
/**
* service_documentation
* OPTIONAL. URL of a page containing human-readable information that developers might want or need to
* know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic
* Client Registration, then information on how to register Clients needs to be provided in this
* documentation.
*/
public static final String SERVICE_DOCUMENTATION = "Service_documentation";
/**
* claims_locales_supported
* OPTIONAL. Languages and scripts supported for values in Claims being returned, represented as a JSON
* array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported
* for all Claim values.
*/
public static final String CLAIMS_LOCALES_SUPPORTED = "Claims_locales_supported";
/**
* ui_locales_supported
* OPTIONAL. Languages and scripts supported for the user interface, represented as a JSON array of
* BCP47 [RFC5646] language tag values.
*/
public static final String UI_LOCALES_SUPPORTED = "UI_locales_supported";
/**
* claims_parameter_supported
* OPTIONAL. Boolean value specifying whether the OP supports use of the claims parameter, with true
* indicating support. If omitted, the default value is false.
*/
public static final String CLAIMS_PARAMETER_SUPPORTED = "Claims_parameter_supported";
/**
* request_parameter_supported
* OPTIONAL. Boolean value specifying whether the OP supports use of the request parameter, with true
* indicating support. If omitted, the default value is false.
*/
public static final String REQUEST_PARAMETER_SUPPORTED = "Request_parameter_supported";
/**
* request_uri_parameter_supported
* OPTIONAL. Boolean value specifying whether the OP supports use of the request_uri parameter, with
* true indicating support. If omitted, the default value is true.
*/
public static final String REQUEST_URI_PARAMETER_SUPPORTED = "Request_uri_parameter_supported";
/**
* require_request_uri_registration
* OPTIONAL. Boolean value specifying whether the OP requires any request_uri values used to be
* pre-registered using the request_uris registration parameter. Pre-registration is REQUIRED when the
* value is true. If omitted, the default value is false.
*/
public static final String REQUIRE_REQUEST_URI_REGISTRATION = "Require_request_uri_registration";
/**
* op_policy_uri
* OPTIONAL. URL that the OpenID Provider provides to the person registering the Client to read about
* the OP's requirements on how the Relying Party can use the data provided by the OP. The registration
* process SHOULD display this URL to the person registering the Client if it is given.
*/
public static final String OP_POLICY_URI = "OP_policy_uri";
/**
* op_tos_uri
* OPTIONAL. URL that the OpenID Provider provides to the person registering the Client to read about
* OpenID Provider's terms of service. The registration process SHOULD display this URL to the person
* registering the Client if it is given.
*/
public static final String OP_TOS_URI = "OP_tos_uri";
public static final String CONFIG_ELEM_OIDC = "OpenIDConnectDiscovery";
public static final String CONFIG_ELEM_OIDCCONFIG = "Configuration";
public static final String CONFIG_DEFAULT_NAME = "default";
/**
* Following Discovery metadata related to OpenID Connect Session Management 1.0 - draft 28
*/
/**
* check_session_iframe
* REQUIRED. URL of an OP iframe that supports cross-origin communications for session state information with the RP
* Client, using the HTML5 postMessage API. The page is loaded from an invisible iframe embedded in an RP page so
* that it can run in the OP's security context. It accepts postMessage requests from the relevant RP iframe and
* uses postMessage to post back the login status of the End-User at the OP.
*/
public static final String CHECK_SESSION_IFRAME = "check_session_iframe";
/**
* end_session_endpoint
* REQUIRED. URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the
* OP.
*/
public static final String END_SESSION_ENDPOINT = "end_session_endpoint";
/**
* backchannel_logout_supported
* OPTIONAL. Boolean value specifying whether the OP supports back-channel logout, with true indicating support.
* If omitted, the default value is false.
*/
public static final String BACKCHANNEL_LOGOUT_SUPPORTED = "backchannel_logout_supported";
/**
* backchannel_logout_session_supported
* OPTIONAL. Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to
* identify the RP session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP.
* If omitted, the default value is false.
*/
public static final String BACKCHANNEL_LOGOUT_SESSION_SUPPORTED = "backchannel_logout_session_supported";
/**
* code_challenge_methods_supported
* OPTIONAL. JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods
* supported by this authorization server. Code challenge method values are used in the "code_challenge_method"
* parameter defined in Section 4.3 of [RFC7636]. The valid code challenge method values are those
registered in the IANA "PKCE Code Challenge Methods" registry [IANA.OAuth.Parameters]. If omitted, the
authorization server does not support PKCE.
*/
public static final String CODE_CHALLENGE_METHODS_SUPPORTED = "code_challenge_methods_supported";
/**
* device_authorization_endpoint
* OPTIONAL. URL of the authorization server's device authorization endpoint,
* as defined in OAuth 2.0 Device Grant [rfc8628]
*/
public static final String DEVICE_AUTHORIZATION_ENDPOINT = "device_authorization_endpoint";
/**
* web_finger_endpoint
* OPTIONAL. URL of the OpenID Connect token discovery endpoint
*/
public static final String WEBFINGER_ENDPOINT = "WebFinger_endpoint";
/**
* tls_client_certificate_bound_access_tokens
* OPTIONAL. Boolean value indicating server support for mutual-TLS client certificate-bound access tokens.
* If omitted, the default value is false.
*/
public static final String TLS_CLIENT_CERTIFICATE_BOUND_ACCESS_TOKEN = "tls_client_certificate_bound_access_tokens";
/**
* mtls_endpoint_aliases
* OPTIONAL. JSON Object containing a list of the aliases of the mTLS endpoints supported by the
* Authorization Server.
*/
public static final String MTLS_ENDPOINT_ALIASES = "mtls_endpoint_aliases";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy