forked from serverlessworkflow/specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request serverlessworkflow#973 from neuroglia-io/feat-oidc…
…-authentication Refactor OAuth2 and add OIDC authentication policy
- Loading branch information
Showing
4 changed files
with
296 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
document: | ||
dsl: 1.0.0-alpha1 | ||
namespace: examples | ||
name: oauth2-authentication | ||
version: 1.0.0-alpha1 | ||
do: | ||
- getPet: | ||
call: http | ||
with: | ||
method: get | ||
endpoint: | ||
uri: https://petstore.swagger.io/v2/pet/{petId} | ||
authentication: | ||
oauth2: | ||
authority: http://keycloak/realms/fake-authority | ||
endpoints: #optional | ||
token: /auth/token #defaults to /oauth2/token | ||
introspection: /auth/introspect #defaults to /oauth2/introspect | ||
grant: client_credentials | ||
client: | ||
id: workflow-runtime-id | ||
secret: workflow-runtime-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
document: | ||
dsl: 1.0.0-alpha1 | ||
namespace: examples | ||
name: oidc-authentication | ||
version: 1.0.0-alpha1 | ||
do: | ||
- getPet: | ||
call: http | ||
with: | ||
method: get | ||
endpoint: | ||
uri: https://petstore.swagger.io/v2/pet/{petId} | ||
authentication: | ||
oidc: | ||
authority: http://keycloak/realms/fake-authority #endpoints are resolved using the OIDC configuration located at '/.well-known/openid-configuration' | ||
grant: client_credentials | ||
client: | ||
id: workflow-runtime-id | ||
secret: workflow-runtime-secret |
Oops, something went wrong.