Authorization
Jinjat is not production-ready, yet.
Jinjat is still in alpha and it's not recommended to use it in production!
Jinjat doesn't enable authorization by default. The following features are currently
Basic Auth
jinjat_project.yml
openapi:
security:
- basicAuth
components:
securitySchemes:
basicAuth:
type: http
scheme: basic
Oauth
See how you can configure Oauth for Snowflake.
jinjat_project.yml
openapi:
security:
- oAuth:
- write_pets
- read_pets
components:
securitySchemes:
oAuth:
type: oauth2
description: This API uses OAuth 2 with the implicit grant flow.
flows:
implicit:
authorizationUrl: https://api.example.com/oauth2/authorize
tokenUrl: https://api.example.com/oauth2/token
refreshUrl: https://api.example.com/oauth2/refresh
scopes:
read_pets: read your pets
write_pets: modify pets in your account
0