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
Now, ideally we should be able to add these through the app config via FOCA. So, e.g., by specifying the following API configuration, we should get what we need:
However, we can currently only add fields to existing operations and security definitions. Therefore, add the security properties to each operation works well with the above example, but adding securitySchemes when there isn't already one defined, does not work with the current implementation in FOCA (link to code):
Therefore, without changing the implementation in FOCA, we need to add an additional, partial OpenAPI file, e.g., api/security_schemes.yaml, with the following content:
Activity
uniqueg commentedon Oct 31, 2023
The problem is that there are no
securitySchemesdefined in the (pro)TES specification, neither are they applied globally or to individual operations (see steps 1 and 2 here: https://swagger.io/docs/specification/authentication/)Now, ideally we should be able to add these through the app config via FOCA. So, e.g., by specifying the following API configuration, we should get what we need:
However, we can currently only add fields to existing operations and security definitions. Therefore, add the
securityproperties to each operation works well with the above example, but addingsecuritySchemeswhen there isn't already one defined, does not work with the current implementation in FOCA (link to code):Therefore, without changing the implementation in FOCA, we need to add an additional, partial OpenAPI file, e.g.,
api/security_schemes.yaml, with the following content:And then use the following FOCA API configuration:
I suggest that we commit the
api/security_schemes.yamlfile and configuration changes to version control. I will raise a PR.uniqueg commentedon Oct 31, 2023
Closed by #163