-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for Dynamic client registration #1220
Comments
From the client side there's configuration information here: https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/wiki/Client-configuration From the server side there's not much to configure, as it conforms to the RFCs: https://tools.ietf.org/html/rfc7591 https://tools.ietf.org/html/rfc7592 |
How do I configure an Initial Access Token which is required to dynamically register clients? We are planning to require mobile app instances to register using the dynamic client registration endpoint. Software vendors get an Initial Access Token they use when registering the instances. We also would like to restrict allowed algorithms for signing JWKs to Elliptic Curve cryptography algorithm. |
There's not directly built in support for the initial access token in the server or client libraries at this time. You could configure it on the server by putting an OAuth resource filter in front of the dynamic registration endpoint and then adding custom code to determine whether to validate the incoming request or not. Similarly with the client you'd need to create a custom dynamic client service that registers with the provided token. A better approach might be to use a software statement instead. The software statement would allow you to do both of the above by providing a semi-unknown (and unforgeable) credential that you can hand to developers, which would also have the benefit of locking down the registration including things like limiting EC algorithms. Support for software statements was added in 1.3. |
We tried to use a software statement like this
Here's the decoded payload
What happens is there's a ParsingException because in DynamicClientRegistrationEndpoint https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server/blob/master/openid-connect-server/src/main/java/org/mitre/openid/connect/web/DynamicClientRegistrationEndpoint.java#L691 it is assumed that the JWKS is in String format. It ends up being a JSONObject and this causes the Exception. How is the JWKS supposed to be presented? If I change it to use
it works. |
You're right, that is supposed to be a JSON object, good catch! We should be able to fix that easily before release. |
Is there any kind of documentation available for the Dynamic client registration feature?
The text was updated successfully, but these errors were encountered: