Skip to content

Authenticated request? #6

Closed Answered by romalytvynenko
vonec asked this question in Q&A
Sep 19, 2022 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Hey @vonec

To describe your API authentication, you can extend you OpenAPI document and add the security scheme to it.

Scramble::extendOpenApi(function (OpenApi $openApi) {
    $openApi->secure(
        SecurityScheme::http('bearer', 'JWT')
    );
});

Read more about security here: https://scramble.dedoc.co/usage/security

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@vonec
Comment options

@vonec
Comment options

@vonec
Comment options

@romalytvynenko
Comment options

Answer selected by romalytvynenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants