Open
Description
There are two steps to discovery:
- figuring out which "issuer" to use for a given user
- figuring out the configuration once you have the issuer
One way of supporting this feature is utilizing an account chooser.
- look for the "iss" parameter on a login page for your issuer
- once you have that, you can get the configuration, and go
it's particularly useful if you're logging in using multiple issuers
Server discovery in Java
https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-client/src/main/java/org/mitre/openid/connect/client/service/impl/ThirdPartyIssuerService.java
- Effectively, if it gets an "iss" parameter, it uses that as the issuer.
If it doesn't, it redirects you to the account chooser URL
This gets tied into the rest of the client filter that does the heavy lifting.