asgardeo / asgardeo-tomcat-oidc-agent

OIDC Agent for Tomcat using Java OIDC SDK for Asgardio
Apache License 2.0
15 stars 36 forks source link

Support OIDC discovery based configuration for endpoints #23

Open mefarazath opened 3 years ago

mefarazath commented 3 years ago

Is your feature request related to a problem? Please describe. Currently to configure endpoints related to authentication, use has to manually edit a property file and fill in all the endpoints

authorizeEndpoint=https://accounts.asgardeo.io/t/<yourTenantDomain>/oauth2/authorize
logoutEndpoint=https://accounts.asgardeo.io/t/<yourTenantDomain>/oidc/logout
tokenEndpoint=https://accounts.asgardeo.io/t/<yourTenantDomain>/oauth2/token
issuer=https://accounts.asgardeo.io/t/<yourTenantDomain>/oauth2/token
jwksEndpoint=https://accounts.asgardeo.io/t/<yourTenantDomain>/oauth2/jwks

Describe the solution you would prefer Instead of all these input we should be able to discovery all the endpoints required simply using the issuer value using OIDC discovery

Additional context