Skip to content

Conversation

@dominique-pfister
Copy link
Contributor

No description provided.

@github-actions
Copy link

This PR will trigger a patch release when merged.

Comment on lines +402 to +403
const apiKeyId = config?.access?.admin?.apiKeyId || orgConfig?.access?.admin?.apiKeyId;
if (apiKeyId.indexOf(profile.jti) < 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

use either site config apiKeyId array, or fallback to org, if there's no site config

Comment on lines 96 to 102
if (attributes.orgConfig === undefined) {
const { org } = info;
if (org) {
this.attributes.orgConfig = await loadOrgConfig(this, org);
attributes.orgConfig = await loadOrgConfig(this, org);
}
}
return this.attributes.orgConfig;
return attributes.config;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

org config is optional

Choose a reason for hiding this comment

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

yes, but you only need to load it, if the request doesn't address a site

Comment on lines 96 to 102
if (attributes.orgConfig === undefined) {
const { org } = info;
if (org) {
this.attributes.orgConfig = await loadOrgConfig(this, org);
attributes.orgConfig = await loadOrgConfig(this, org);
}
}
return this.attributes.orgConfig;
return attributes.config;

Choose a reason for hiding this comment

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

yes, but you only need to load it, if the request doesn't address a site

@dominique-pfister dominique-pfister merged commit b84d607 into main Nov 15, 2025
6 checks passed
@dominique-pfister dominique-pfister deleted the api-key-in-view branch November 15, 2025 07:44
github-actions bot pushed a commit that referenced this pull request Nov 15, 2025
## [1.15.1](v1.15.0...v1.15.1) (2025-11-15)

### Bug Fixes

* **auth:** config needs to be loaded after `info` has been set ([94f5c07](94f5c07))
* **auth:** use new `apiKeyId` array ([#33](#33)) ([b84d607](b84d607))
@github-actions
Copy link

🎉 This PR is included in version 1.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants