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

Fixed key for reading openid configuration from storage #319

Merged
merged 2 commits into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Unreleased changes are available as `avenga/couper:edge` container.
* **Changed**
* Organized log format fields for uniform access and upstream log ([#300](https://github.com/avenga/couper/pull/300))

* **Fixed**
* Key for storing and reading [OpenID configuration](./docs/REFERENCE.md#oidc-block-beta) ([#319](https://github.com/avenga/couper/pull/319))

---

## [1.4](https://github.com/avenga/couper/releases/tag/1.4)
Expand Down
3 changes: 2 additions & 1 deletion oauth2/oidc/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ func (o *Config) fetchConfiguration(uid string) (*OpenidConfiguration, error) {
return nil, err
}

o.memStore.Set(o.ConfigurationURL, openidConfiguration, o.ttl)
key := o.Name + o.ConfigurationURL
o.memStore.Set(key, openidConfiguration, o.ttl)
return openidConfiguration, nil
}

Expand Down