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

Where Bearer key? #5

Open
koterix opened this issue Jun 26, 2018 · 1 comment
Open

Where Bearer key? #5

koterix opened this issue Jun 26, 2018 · 1 comment

Comments

@koterix
Copy link

koterix commented Jun 26, 2018

Have a problem. Bearer not write before key!

@SWG\SecurityScheme(
    securityDefinition="Bearer",
    type="apiKey",
    name="Authorization",
    in="header"
),

Result:
-H "Authorization: r6IesHXXyGqhePR_Rg3o5ULCbgn1eHMn"
but must be a
-H "Authorization: Bearer r6IesHXXyGqhePR_Rg3o5ULCbgn1eHMn"
Sorry for my english ;)

@rvkulikov
Copy link

rvkulikov commented Jul 12, 2018

tl;dr:
Stop using this package. It doesnt support 3.0 version of zircote/swagger-php.

Its available only for openapi 3.0 schema.
You must specify additional parameter "bearerFormat".
This means you cannot use SWG annotations and you must use OA annotations instead.
https://swagger.io/docs/specification/authentication/bearer-authentication/

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

No branches or pull requests

2 participants