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

(JWT) Allow validating RSA, DSA, and other KeyFactory supported algor… #287

Merged
merged 1 commit into from Jan 3, 2018

Conversation

Projects
None yet
2 participants
@croemmich
Contributor

croemmich commented Oct 27, 2017

The current JWT validator only support HMAC signatures. Extend to allow RSA, DSA, and other algorithms supported by the Java KeyFactory via the new signature_algo configuration option.

RSA Example:

      access_control_rules:
      - name: "jwt-rsa"
        jwt_auth:
          signature_key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAswRJV9YwPCPCu0173Slfp5L7vv6iTmm+dGrE6Q0/1pUVbC/sGS4ItfkereULuLYViN0pqhGNxNAPZabjOL5SAlIqq5j05vlGONaEBTM+F8KD+HEIfxP4OZwcpC92D6pM2FKCYUZJx/pZ2sMxFGn7qR9DdCnPHq7hvvaTNAZCw8HlBax8182NwuNty0EpuZmHoJTGCZRXJifb6DJwlJgz2OKkzZRcvFOJLARQQNfqv6aRannjmrAJR4e5ZywLUe/CP6xi4VQwagIDtFtrDjAzCz+fOJZdM68mK7pQOzhLEBmKkHqUplEvaZtNuN3ZdIMLLhmG3NJuSz9uARf0S0NqSQIDAQAB"
          signature_algo: RSA
          user_claim: preferred_username

Repository owner deleted a comment from codacy-bot Oct 31, 2017

Repository owner deleted a comment from codacy-bot Nov 29, 2017

Repository owner deleted a comment from codacy-bot Jan 2, 2018

@sscarduzio sscarduzio merged commit 2f1f42b into sscarduzio:master Jan 3, 2018

3 checks passed

Codacy/PR Quality Review Good work! A positive pull request.
Details
clahub All contributors have signed the Contributor License Agreement.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment