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

Update authentication flow #18527

Merged
merged 15 commits into from
May 23, 2024
Merged

Update authentication flow #18527

merged 15 commits into from
May 23, 2024

Conversation

ana-vinogradova-camunda
Copy link
Contributor

Description

Updating authentication flow as per this issue description

  • Reverting to initial authentication approach: leaving only OAuthCredentialsProvider for all authentications, removing Authentication and its implementation.
  • Maintaining 2 configurations: self-managed (instead of oidc, renaming will be done in the next PR) and saas.

Related issues

closes #17886

@github-actions github-actions bot added the component/zeebe Related to the Zeebe component/team label May 15, 2024
Copy link
Contributor

@nicpuppa nicpuppa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ana-vinogradova-camunda great work, I left a couple of questions. Please have a look

@nicpuppa
Copy link
Contributor

I'm starting to backport your changes to stable/8.5 🚀

Revert to initial authentication approach: leave only
OAuthCredentialsProvider
for all authentications, remove Authentication and its implementation.
Removing usages of Authentication classes and it's implementation as we
are using OAuthCredentialsProvider now
Moving TokenRequest and TokenResponse to "token" package
Removing "simple" mode as it is not used
Adjusting tests to use OAuthCredentialsProvider instead of
IdentityCredentialsProvider
Use CredentialsProvider instead of Authentication.
Updated relevant tests.
Renaming the CamundaClientPropertiesOidcTest to
CamundaClientPropertiesSelfManagedTest as it reflects the actual usage
of this profile
Changing "isPlaintextConnectionEnabled" return type to support null
value indicating that there is no configuration for it and avoiding
using default value when the value is actually not set

"getGrpcAddress" and "getRestAddress":
Return null if not set so default value could be set after checking new
config. This done because we check the old config first and only then -
the new one.
This should be tested in configuration tests.
- add test for default properties
- fixing getGrpcAddress default
- Adding correct issuer for SM
- Removing client mode for SM as not needed
- Removing unused dependency
- Adding missing property to yaml files
using grpc address instead of deprecated gateway address
@nicpuppa nicpuppa force-pushed the 17886-update-authentication-flow branch from 6417605 to 3fd915e Compare May 23, 2024 14:09
Copy link
Contributor

@nicpuppa nicpuppa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving this PR as we paired on this 🚀

@nicpuppa nicpuppa enabled auto-merge May 23, 2024 14:26
@nicpuppa nicpuppa added this pull request to the merge queue May 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2024
@nicpuppa nicpuppa added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit ef78c18 May 23, 2024
19 checks passed
@nicpuppa nicpuppa deleted the 17886-update-authentication-flow branch May 23, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/zeebe Related to the Zeebe component/team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update authentication flow
2 participants