-
|
When using Airflow REST API through Swagger UI, I would like to secure Airflow REST API only using JWT authentication and disable other securitySchemes(Basic, GoogleOpenId, Kerberos). Is there any ways to override securitySchemes in Swagger UI? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
|
I implemented custom API authentication functions, but it seems that other functions need to be modified in order to extend Swagger UI. airflow/airflow/www/extensions/init_views.py Lines 270 to 286 in 78b2d82 From the above code, it looks like v1.yaml file must be modified to extend Swagger UI. From what I've found so far, there is no way to provide a customized v1.yaml file except building a custom airflow package. Is that correct?
|
Beta Was this translation helpful? Give feedback.

No idea to be honest - I am not sure what you are asking about. If you want to run API calls,backend should be enough. These are plain REST calls - and you can generate your own client (and for that yes, you need to generate your code based on modfied v1.yaml). When it comes to swagger UI - this one that is embedded in Airflow uses the built-in auth schemes, But Swagger UI is just. a demo /documentation and a way to explore the API - you absolutely do not need swagger UI to run your API calls.