XeroAPI / xoauth

A CLI tool for obtaining JWTs from OpenId Connect providers
MIT License
49 stars 16 forks source link

Enable custom servers with OAuth application id in url path. #17

Open pejotes opened 4 years ago

pejotes commented 4 years ago

Please note some providers like for example Okta allows to create custom authorisation servers like described here https://developer.okta.com/docs/concepts/auth-servers/ This allows to create custom servers for apps with separate urls based on schema. " OpenID: https://${yourOktaDomain}/oauth2//.well-known/openid-configuration OAuth: https://${yourOktaDomain}/oauth2//.well-known/oauth-authorization-server "

The change adds path component to discovery url for endpoints. Tested with generic hostname base url and this custom based.