Skip to content

display docs and endpoints based on user’s scopes #944

@yeyeric

Description

@yeyeric

First check

  • [ X ] I used the GitHub search to find a similar issue and didn't find it.
  • [ X ] I searched the FastAPI documentation, with the integrated search.
  • [ X ] I already searched in Google "How to X in FastAPI" and didn't find any information.

Description

I’ve read links on medium about how to add login authentication to the /docs page.
I was wondering how I could display only the endpoints which the user is allowed to access to based on his scopes ?

Any idea how to do so?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions