Can I change the way an Authorization header is generated? #584
Unanswered
calthejuggler
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
I've been using openapi-docs for a while now and I love it. We have a huge API spec and the docusaurus pages are generated beautifully. I've come to an issue though, when a User tries to access our API, they must pass an apiKey as an authorization header. The thing is, it must come in the form:
Is there a way that I can display this in the generated docs?
![image](https://private-user-images.githubusercontent.com/30095183/240578471-1d295067-fb74-4878-a1e1-f4cf943d2c4e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjgyODYsIm5iZiI6MTczOTYyNzk4NiwicGF0aCI6Ii8zMDA5NTE4My8yNDA1Nzg0NzEtMWQyOTUwNjctZmI3NC00ODc4LWExZTEtZjRjZjk0M2QyYzRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEzNTk0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlYzBjOTdmZWFjZTU3Mjg0NGQ0MjFmOTlkMTE1OGZlZjczZWZlYTRhZjZlZTQyZWE2YmJmYjQ0MWU4MDcyZWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ttZJlw5PSBIIiolLABnYJFR87C-iKOqZuhjMj4z4hW4)
![image](https://private-user-images.githubusercontent.com/30095183/240578730-7360d210-0840-4ad3-8356-d4a059807fa6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjgyODYsIm5iZiI6MTczOTYyNzk4NiwicGF0aCI6Ii8zMDA5NTE4My8yNDA1Nzg3MzAtNzM2MGQyMTAtMDg0MC00YWQzLTgzNTYtZDRhMDU5ODA3ZmE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEzNTk0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhYzFiOGFlNDQ2NWY5MzUzN2RiNGM2NWE5Njk5YTk0MDExYzA1Y2E1NmI5MDM0OTlmNTg5MTdiODJmOWU2NDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TTk8ksBS-feCNuLxRJ6GmGtMHzFOCy0yFczDv7A7iQc)
Currently it looks like this:
and the closest I've gotten is this:
But there's an extra
:
in there.Does anybody have any ideas about how I could do this?
Please and thank you in advance :)
Beta Was this translation helpful? Give feedback.
All reactions