You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2024. It is now read-only.
I found the documentation a little bit confusing. It didn't work for me. I needed to place basic_auth in a security object. Have I made a mistake or is there a mistake in the documentation?
securitySchemes:
- basic_auth:
description: |
Need an Access Token in an Authorization Header to access this API endpoint. Requests need to be in the format username:accessToken. Access tokens are generated on pubpub.org/user/{username}/tokens.
Also send them base 64 encoded. So an example header looks like 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
type: Basic Authentication
describedBy:
headers:
Authorization:
description: |
Used to send a valid OAuth 2 access token. Do not use
with the "access_token" query string parameter.
type: string
@hassanshaikley: I agree that the docs could use a few more examples. Maybe a wiki section pointing to more examples.
That being said, there is a note in the README that says: osprey.loadFile is shorthand for ramlParser.loadFile -> [osprey.security, osprey.server, osprey.errorHandler]. So when using osprey.loadFile(raml, options), the options will get passed as: osprey.security(raml, options.security). See here.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey all,
I found the documentation a little bit confusing. It didn't work for me. I needed to place basic_auth in a security object. Have I made a mistake or is there a mistake in the documentation?
Link to documentation.
My code:
The text was updated successfully, but these errors were encountered: