This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
OpenID Connect Discovery
The WSO2 Identity Server supports OpenID Connect Discovery as a means of discovering the end user's OpenID Provider and obtaining information needed to interact with it, including its OAuth 2.0 endpoint locations. For more information, see IssuerDiscovery.Â
The OpenID Connect Discovery endpoint is as follows:
https://localhost:9443/.well-known/webfinger
The following information is required to make a request.
Parameter | Description | Sample Value |
---|---|---|
Resource | Identifier for the target end user that is the subject of the discovery request. | acct:admin@localhost (for super tenant) acct:admin@wso2.com@localhost (for tenant) |
HostServer | Where the WebFinger service is hosted. | localhost |
rel | URI identifying the type of service whose location is being requested. | http://openid.net/specs/connect/1.0/issuer |
By default, all endpoints in the WSO2 Identity Server are secured with basic authentication. You will need authentication details to call the endpoints. By default, you can use admin credentials or an access token for the request.
- For more information on how to obtain an access token, see Allowed grant types for OAuth2-OpenID Connect.
- For more information on securing the REST API or customizing authentication/authorization for the REST API, see Authenticating and Authorizing REST APIs.Â
Sample requests and responses are shown below.Â
Request #1 (for super tenant) | Sample Request curl -v -k --user admin:admin https://localhost:9443/.well-known/webfinger?resource='acct:admin@localhost&rel=http://openid.net/specs/connect/1.0/issuer' |
---|---|
Response #1 (for super tenant) | { "subject": "acct:admin@localhost", "links": [ { "rel": "http://openid.net/specs/connect/1.0/issuer", "href": "https://localhost:9443/oauth2/oidcdiscovery" } ] } |
Request #1 (for tenant: wso2.com) | Sample Request curl -v -k --user admin:admin https://localhost:9443/.well-known/webfinger?resource='acct:admin%40wso2.com@localhost&rel=http://openid.net/specs/connect/1.0/issuer' |
Response #1 (for tenant: wso2.com) | { "subject": "acct:admin@wso2.com@localhost", "links": [ { "rel": "http://openid.net/specs/connect/1.0/issuer", "href": "https://localhost:9443/t/wso2.com/oauth2/oidcdiscovery" } ] } |
Request #2 | Once you receive the response shown above, use the href received and append Sample Request curl -v -k --user admin:admin https://localhost:9443/oauth2/oidcdiscovery/.well-known/openid-configuration |
Response #2 | Sample Response { "scopes_supported": [ "address", "phone", "email", "profile", "openid" ], "issuer": "https://localhost:9443", "authorization_endpoint": "https://localhost:9443/oauth2/authorize", "claims_supported": [ "birthdate", "preferred_username", "name", "phone_number", "profile", "region", "street_address", "locality", "zoneinfo", "locale", "sub", "gender", "formatted", "email_verified", "updated_at", "middle_name", "nickname", "email", "family_name", "website", "address", "phone_number_verified", "given_name", "picture", "postal_code", "country" ], "token_endpoint": "https://localhost:9443/oauth2/token", "response_types_supported": [ "code", "id_token", "token id_token", "token" ], "userinfo_endpoint": "https://localhost:9443/oauth2/userinfo", "jwks_uri": "https://localhost:9443/oauth2/jwks/carbon.super", "subject_types_supported": [ "pairwise" ], "id_token_signing_alg_values_supported": [ "RS256" ], "registration_endpoint": "https://localhost:9443/identity/connect/register" } |