Skip to content
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

make it configurable to get jwt public certificates from cache or from oauth server #140

Closed
sharjeeltariq opened this issue Dec 8, 2017 · 2 comments
Assignees
Labels
enhancement Issue: Enhancement

Comments

@sharjeeltariq
Copy link

No description provided.

@stevehu stevehu self-assigned this Dec 9, 2017
@stevehu
Copy link
Contributor

stevehu commented Dec 9, 2017

@sharjeeltariq Thanks for opening this issue for enhancement. As we've discussed offline, I am adding more details below for other developers to track what is changing and in what condition they can leverage the new feature.

As we know light-oauth2 has a key distribution service to allow service/resource server to retrieve public key certificate by passing kid from JWT token header. In case of key rotated on the oauth2 server, there is no need to push the public key certificate to all servers in order to verify signature of JWT signed by OAuth2 server. Currently, we have option to package the public key certificate(s) with other configuration files during deployment. But if you are using light-oauth2 to secure your service, you don't need to do that. Once the server is up and running, it will goto the oauth2 server to get it and cache it until the new key is rolling out. In light*4j framework, we do support other OAuth2 servers but given no other commercial servers support the key distribution this way, we want to make it configurable so that the service can bootstrap from dynamic loading key from key service of OAuth2 or from local config. The implementation detail will follow.

@stevehu
Copy link
Contributor

stevehu commented Dec 14, 2017

The release is pending and there is an tutorial that developers can follow.

https://doc.networknt.com/tutorial/security/bootstrap-from-key-service/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue: Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants