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

Make audience and azp checks optional #921

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

julien-nc
Copy link
Member

Make audience and azp checks optional when logging in or validating a bearer token.

refs #856
closes #918

@col-panic Until the azp check is clarified, I think it's enough to be able to disable aud and azp checks independently during login or NC API requests bearer token validation. Wdyt?

@col-panic
Copy link

@julien-nc I think that its good, offers the most flexibility. Do you know why they have to be hardcoded in config.php and can't be set with occ?

if (
(is_string($tokenAudience) && $tokenAudience !== $providerClientId)
$checkAudience = !isset($oidcSystemConfig['login_validation_audience_check'])
|| !in_array($oidcSystemConfig['login_validation_audience_check'], [false, 'false', 0, '0'], true);
Copy link
Member

Choose a reason for hiding this comment

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

I'd say it is also fine to just support actual boolean values, but fine with me 😁

@col-panic
Copy link

@juliushaertl wdyt when will this be integrated? Any idea of the timing for the next release?

@julien-nc julien-nc force-pushed the enh/noid/optional-aud-azp-checks branch from 4630759 to 0f31b58 Compare September 6, 2024 09:07
@julien-nc julien-nc merged commit 0360300 into main Sep 6, 2024
44 checks passed
@julien-nc julien-nc deleted the enh/noid/optional-aud-azp-checks branch September 6, 2024 09:13
@julien-nc julien-nc mentioned this pull request Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azp and selfencoded_bearer_validation_audience_check configuration
3 participants