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

feat(policy): JWT policy #2

Merged
merged 1 commit into from
Jul 21, 2016
Merged

feat(policy): JWT policy #2

merged 1 commit into from
Jul 21, 2016

Conversation

brasseld
Copy link
Member

In charge of validatation of Json Web Tokens signature & expiration

Closes gravitee-io/issues#46

In charge of validatation of Json Web Tokens signature & expiration

Closes gravitee-io/issues#46
@brasseld brasseld merged commit d007472 into master Jul 21, 2016
@brasseld brasseld deleted the feat/#46-jwt-policy branch July 21, 2016 20:56
brasseld pushed a commit that referenced this pull request Jul 21, 2016
In charge of validation of Json Web Tokens signature & expiration

Closes gravitee-io/issues#46
brasseld pushed a commit that referenced this pull request Jul 21, 2016
In charge of validation of Json Web Tokens signature & expiration

Closes gravitee-io/issues#46
NicolasGeraud pushed a commit that referenced this pull request Aug 1, 2016
In charge of validation of Json Web Tokens signature & expiration

Closes gravitee-io/issues#46
@yogeshgarg1904
Copy link

We have configured the JWT as per the below screenshot, but it is always showing unauthorized although we have valid the token online it is validating correctly.
Please help us how can resolve the same.

Gravitee

@brasseld
Copy link
Member Author

brasseld commented Feb 5, 2020

Hi @yogeshgarg1904

I see that you've defined a JWT plan.

Do you have an application which subscribes to this plan (with the client from the token)?

@aelamrani
Copy link
Member

@yogeshgarg1904 you specified a rsa with a HS256 signature, it is your error here

@yogeshgarg1904
Copy link

yogeshgarg1904 commented Feb 5, 2020

Hi @brasseld
No application is subscribing the plan. Do u suggest to create application?

@yogeshgarg1904
Copy link

@aelamrani what should be correct configuration

@brasseld
Copy link
Member Author

brasseld commented Feb 5, 2020

@yogeshgarg1904 you have used a key to generate the token.

Please use the same hash within the resolver parameter

@yogeshgarg1904
Copy link

@brasseld thanks for suggestion. i have used the secret key in resolver parametre but still not working

image

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

Successfully merging this pull request may close these issues.

[policy] JWT Policy
4 participants