Skip to content

Adding Jwt authentification  #74

@monmaxime

Description

@monmaxime

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions