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

fix: openid config provider not initialized correctly #14399

Merged
merged 1 commit into from Feb 24, 2022
Merged

fix: openid config provider not initialized correctly #14399

merged 1 commit into from Feb 24, 2022

Conversation

hellivan
Copy link
Contributor

@hellivan hellivan commented Feb 24, 2022

Description

Up until now InitializeProvider method of Config struct was
implemented on a value receiver which is why changes on provider
field where never reflected to method callers. In order to fix this
issue, the method was implemented on a pointer receiver.

Motivation and Context

Keycloak IDP user removal job was never triggered because of wrong configuration initialization.

How to test this PR?

Unit test was implemented in internal/config/identity/openid/jwt_test.go

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Documentation updated
  • Unit tests added/updated

Up until now `InitializeProvider` method of `Config` struct was
implemented on a value receiver which is why changes on `provider`
field where never reflected to method callers. In order to fix this
issue, the method was implemented on a pointer receiver.
@minio-trusted
Copy link
Contributor

Mint Automation

Test Result
mint-large-bucket.sh ✔️
mint-fs.sh ✔️
mint-gateway-s3.sh ✔️
mint-erasure.sh ✔️
mint-dist-erasure.sh ✔️
mint-gateway-nas.sh ✔️
mint-compress-encrypt-dist-erasure.sh ✔️
mint-pools.sh ✔️
Deleting image on docker hub
Deleting image locally

@harshavardhana harshavardhana merged commit 0913eb6 into minio:master Feb 24, 2022
@hellivan hellivan deleted the fix/config_initialization branch February 24, 2022 08:50
@bh4t bh4t added the bugfix label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants