-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support passing a JWT token for authorization #276
Comments
When you say "we also do not want to make the users type in the credentials for the cluster, instead just use the user token for authorizing deployments", where does the user get this token? |
The idea is that the token would be a pre-existing user access token which is obtained when the user logs into the Web Modeler. This token is then used to authorize deployments without needing to enter a client ID/secret pair for the target cluster. This is already implemented. What we are now trying to do is to also make this possible for The const c8 = new Camunda8({
CAMUNDA_AUTH_STRATEGY: 'BEARER',
CAMUNDA_OAUTH_TOKEN: 'mysecrettoken',
}); See also the middleware used to validate the token. |
Please also have a look at the linked epic in the issue description (especially the authorization slice) for a more detailed explanation of the changes in Web Modeler. |
Hey @jwulf,
Magically with the login into an app like Web Modeler. I have a customer that request to restrict deployment permissions per user. Currently (I'm still on 8.5) you can only hide the client ID/client Secret from people, that should not deploy. But for testing your BPMN diagram, you have to share the client ID/client secret (with other people). This sounds not logical and is a security risk. |
Released in 8.6.16 |
SDK Component
OAuth provider
Expected Behavior
Calls to APIs can be authorized using a JWT token that is directly passed in the configuration.
Current Behavior
Calls to APIs can be authorized using
Possible Solution
BEARER
to the configuration optionCAMUNDA_AUTH_STRATEGY
CAMUNDA_OAUTH_TOKEN
Context (Environment)
In Web Modeler, we are simplying the deployment experience for the self-managed product context by allowing users to simply select a cluster and deploy. The available clusters are part of the configuration. Epic: https://github.com/camunda/web-modeler/issues/10217
Previously the behaviour was that the users enter the client information including the credentials (client ID and secret) to be able to deploy.
With the new experience and the clusters moving to the configuration, we cannot have the credentials as part of the configuration. For a simplified experience, we also do not want to make the users type in the credentials for the cluster, instead just use the user token for authorizing deployments. This change was implemented in https://github.com/camunda/web-modeler/issues/11337 and we will now also remove the fields for the credentials from the UI.
We use the sdk for the
Play
mode in Web Modeler and since we will not have the option to get the credentials going forward, we want to support authorizing the requests using the user token.See also the additional context in this comment.
The text was updated successfully, but these errors were encountered: