serverlessworkflow / sdk-typescript

Typescript SDK for Serverless Workflow
https://serverlessworkflow.io/
Apache License 2.0
62 stars 16 forks source link

Auth schema validation #187

Open tiberiu89 opened 2 months ago

tiberiu89 commented 2 months ago

What happened: Following the specs for 0.8, I can't seem to make auth definition to work

"auth": [
    {
      "name": "azure",
      "scheme": "oauth2",
      "properties": {
        "grantType": "clientCredentials",
        "clientId": "${ $SECRETS.AZURE_CLIENT_ID }",
        "clientSecret": "${ $SECRETS.AZURE_CLIENT_SECRET }"
      }
    }
  ],

the workflow validator throws a lot of errors around this. like fields must be string, missing properties that should be defined for other scheme types etc.

What you expected to happen: Pass validation