Skip to content
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

Modeler API on Self-Managed is not Authorized #55

Closed
jwulf opened this issue Mar 13, 2024 · 1 comment
Closed

Modeler API on Self-Managed is not Authorized #55

jwulf opened this issue Mar 13, 2024 · 1 comment
Assignees
Milestone

Comments

@jwulf
Copy link
Member

jwulf commented Mar 13, 2024

Tests of Modeler API on Self-Managed currently fail due to not being authorized.

This could be because the OAuth token for Modeler on SaaS needs an audience of api.cloud.camunda.io and Self-Managed, apparently, it should be requested with no audience. See here: https://docs.camunda.io/docs/next/apis-tools/web-modeler-api/authentication/?authentication=self-managed

@jwulf jwulf self-assigned this Mar 13, 2024
@jwulf jwulf added this to the 8.5.0 milestone Mar 13, 2024
@jwulf
Copy link
Member Author

jwulf commented Mar 14, 2024

Yes, Modeler token request on Self-Managed needs to be made with no audience.

On Camunda SaaS, it needs an audience of api.cloud.camunda.io.

In the OAuthProvider, I've coded it so that if the OAuth endpoint is the Camunda SaaS one, a Modeler token request uses the correct audience, otherwise, it will use a CAMUNDA_MODELER_OAUTH_AUDIENCE if one is provided, otherwise nothing.

@jwulf jwulf closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant