Comments (7)
Oops :)
Thanks @cdavernas
from specification.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from specification.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from specification.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from specification.
@paarthdassani First of all, sorry we could not address your issue sooner, we had our hands full with upcoming refactor.
As we are finishing up modelling the 1.0.0-alpha1, I want to make sure it covers what you need/are asking for.
An implicit schema should be defined for the function arguments based on the securitySchemes defined in the asyncapi/openapi operation.
What do you mean exactly with that? I'm not sure I understand. You want to add a way to set the parameters of the security scheme defined in the OpenAPI document? If so, then you probably hould use an authentication policy.
As of now, authentication in ServerlessWorkflow is declarative, not dynamic. This means that, even though you are calling an OpenAPI function that is documented to be protected by, say, basic authentication, Serverless Workflow mandates that you declare it as the function's authentication policy. As a result, runtimes should not pay attention to authentication mechanisms documented in the OpenAPI doc.
The main reason behind it is that, by definition, OpenAPI only documents said schemes, and does not, obviously, configure it, which forces you to declare some (potentially arbitrary) parameters (like username and password) in the function call... that's exactly what can be achieved using an Authentication Policy, which defines, for each supported scheme, the schemas I believe you are speaking about.
from specification.
Thanks @ricardozanini for the response! Runtime relying on the authentication policy works.
from specification.
@paarthdassani you meant @cdavernas? 🤣
from specification.
Related Issues (20)
- Fix CICD to match the DSL from 1.0.0
- Document supported scripts HOT 1
- Add Print Task HOT 1
- Remove Shell Process HOT 3
- flowDirective schema does not support task names HOT 1
- specify jq expression $input variable HOT 3
- Accessing secrets in the workflow definition HOT 7
- Context Data Update Behavior HOT 15
- Context Data Scoping HOT 2
- Rename output.from and output.to HOT 13
- Fix the Script Process
- Remove reliance on key order in "do" HOT 93
- Fix `endpoint` URI format in workflow SCHEMA
- [PROPOSAL] - Protect main branch against CI failures HOT 3
- Document Task's `if` property
- Invalid `do:switch` HOT 59
- Add support for expression objects HOT 8
- Authentication are not referenceable HOT 14
- Define a "Priority of Constituencies" HOT 5
- Specifying Query Parameters for call: HTTP HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from specification.