mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
fix: openid config provider not initialized correctly (#14399)
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.
This commit is contained in:
@@ -155,7 +155,7 @@ const (
|
||||
// InitializeProvider initializes if any additional vendor specific
|
||||
// information was provided, initialization will return an error
|
||||
// initial login fails.
|
||||
func (r Config) InitializeProvider(kvs config.KVS) error {
|
||||
func (r *Config) InitializeProvider(kvs config.KVS) error {
|
||||
vendor := env.Get(EnvIdentityOpenIDVendor, kvs.Get(Vendor))
|
||||
if vendor == "" {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user