C
C#2mo ago
Ellopis

Scalar with Bearer Token

How do I set Scalar or OpenApi to let me input the Authentication Bearer Token? It's not giving me any field to set it up.
No description
7 Replies
Salman
Salman2mo ago
You put the token in Authorization header like Authorization: Bearer YOUR_TOKEN_HERE there's a headers section as you can see
Ellopis
EllopisOP2mo ago
Okay, but... There is a section done for Authentication specifically. I hoped they ease that part, and once you set one request with it every request will be authorized I still think I have something missconfigured
Ellopis
EllopisOP2mo ago
No description
Ellopis
EllopisOP2mo ago
Empty there What I want is not set the Authorization header every time. Set either a cookie or set the value once for each endpoint. Well, cookies work well for this
sibber
sibber2mo ago
scalar has discord server, the dev team is pretty active there you should try asking there
Pedro
Pedro2mo ago
it works if I go through swashbuckle in my case but not through the openapi implementation of Microsoft I would check the generated files, kind of interested to get your feedback for what actually "breaks" scalar bearer detection
Luiz Célio GF
I have the same problem!

Did you find this page helpful?