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

Adding Jwt authentification #74

Closed
Superprogrameur59 opened this issue Dec 23, 2017 · 3 comments · Fixed by #352
Closed

Adding Jwt authentification #74

Superprogrameur59 opened this issue Dec 23, 2017 · 3 comments · Fixed by #352

Comments

@Superprogrameur59
Copy link

Hi, i'm trying to implement jwt authentification to my admin system but i detected some troubles.
Following this documentation : "https://api-platform.com/docs/admin/authentication-support", I have to open security on many url of my API like :
-"url_api/"
-"url_api/docs.jsonld/"
-"url_api/contexts/Entrypoint/"

Then the system works perfectly ( redicrection to login page, store and use a JWT ...), but it's a bit weird to open some routes, even if it's only documentation, of a securised API.

So i tried to follow this : "#51 ". In this case i can securise all routes of the API but after login Many To One and Many to Many relations are not supported.

Is it possible to combine both ways ?

Thanks a lot ;)

@thomas-obernberger
Copy link

thomas-obernberger commented Nov 4, 2018

push - we are having nearly the same problem :) does anyone have an idea?
thanks!

@jalmeida-mct
Copy link

jalmeida-mct commented Apr 23, 2019

same here, code from that documentation page doesn't work with JWT tokens, but API authorise functionality works fine.

After setting up all code as in the docs, admin fails with this error:

The API documentation has no "http://www.w3.org/ns/hydra/core#supportedClass" key or its value is not an array.

Requests have the correct JWT token, but the client doesn't work. All my implementation is based on the documentation, so maybe I missed a step somewhere?`

@sunglee
Copy link

sunglee commented Feb 14, 2020

Anyone have JWT Authentication working with the latest version?

I posted more detailed in this issue comment.

#273 (comment)

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 a pull request may close this issue.

4 participants