Skip to content

CDS Authentication on $api-docs #228

@TornadoM

Description

@TornadoM

Hello all,

Thanks a lot for this tool. I have a question regarding the Swagger route. Hope this is the right place for it. It seems that the Swagger endpoint (e.g. /$api-docs/...) is publicly accessible by default. Is there a way to protect it using CDS authentication?

In a CDS service definition, we can do something like this:

service AAAA @(requires: ['xxxxxx']) @(path: '/xxxxx');

But how can we achieve something similar for the CDS Swagger UI?

We’d like only users with specific scopes to be able to access the documentation.

Thanks a lot for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions