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

[policy] [generate-jwt] unable to generate JWT #2397

Closed
vdbxavier opened this issue Jun 21, 2019 · 1 comment

Comments

@vdbxavier
Copy link

commented Jun 21, 2019

stacktrace.txt

**

Expected Behavior

We need this feature to use extended grant type JWT for retrieve scopes from a simple JWT that contain apiKey.

Current Behavior

500
{ "message": "io.gravitee.gateway.policy.PolicyException: java.lang.reflect.InvocationTargetException", "http_status_code": 500 }

Possible Solution

jar not in classpath ?

Steps to Reproduce (for bugs)

  1. create a Generate JWT policy on plan
  2. create request...

Your Environment

  • Version used: 1.27
  • official docker demo
@vdbxavier

This comment has been minimized.

Copy link
Author

commented Jun 21, 2019

` "policy-generate-jwt": {
"signature": "RSA_RS256",
"issuer": "urn://wamwam.com",
"expiresIn": 30,
"expiresInUnit": "SECONDS",
"audiences": [],
"customClaims": [],
"kid": "{#context.attributes['api-key']}",
"id": "",
"content": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDOYYAnfnkUUyc4\n3BE/W0gKlxo2m+im5qJFKdNJK3kAcrsyT7RYIJR9nv7Pcllj/SuxAqUgkIAn9UDA\nVOczGDjh9D+SSkL9896PGjzCk0fqWIkSVa8pVGJGHB6HNlfkuC6hz7fapn2OOty2\nRi9gq5MgeP4CppnF0Cf5Hok5RNQh9wPrtcgi25AGH6/yf

... ...

BCfyZP2fyCRCeLV39lxDjuEy8K/oFvEIxdLdZYOwoYCo0x0UGcXKhtCNLU\nCfzmeqoVlwHxzDWp2gfFqmLcL5NLqKOPFfJL96WAIQKBgGpzvUhbE6HuHBX+DJWl\nnZPyYAefLwO7UAVWVJgZ4mIhu7VA9Muk0+qMQx2W6PsBbF647GxazZYOt86yX9V6\nPGc2IOize/ingtqoiXZDV+8s1vQNfFI3ZnQI3L9eSLPSrOEjZdhpNi4KX69TQGm5\nNTyvKIfw86dCvEOq+WaMcCVa\n-----END PRIVATE KEY-----",
"subject": "ApiKey2JWT"
},
"description": "Description of the Generate JWT Gravitee Policy",
"enabled": true
}`

brasseld added a commit to gravitee-io/gravitee-policy-generate-jwt that referenced this issue Jul 1, 2019

brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue Jul 1, 2019

@brasseld brasseld changed the title [policy] unable to generate JWT (APIM 1.27) [policy] [generate-jwt] unable to generate JWT (APIM 1.27) Jul 1, 2019

@brasseld brasseld changed the title [policy] [generate-jwt] unable to generate JWT (APIM 1.27) [policy] [generate-jwt] unable to generate JWT Jul 1, 2019

@brasseld brasseld self-assigned this Jul 1, 2019

@brasseld brasseld added this to the APIM - 1.27.1 milestone Jul 1, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Jul 2, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-policy-generate-jwt that referenced this issue Jul 2, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-policy-generate-jwt that referenced this issue Jul 2, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue Jul 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.