document:
dsl: '1.0.0-alpha5'
namespace: test
name: oauth2-authentication-password-endpoint
version: '0.0.13'
do:
- getPet:
call: http
with:
method: get
endpoint:
uri: http://localhost:8081/hello
authentication:
oauth2:
authority: http://localhost:8888/realms/test-realm
endpoints:
token: protocol/openid-connect/token
grant: password
request:
encoding: application/json
client:
id: serverless-workflow
secret: test-oauth2-client-secret-value
username: serverless-workflow-test
password: serverless-workflow-test
issuers:
- http://localhost:8888/realms/test-realm