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

OIDCUnAuthAction does not support boolean expression #2566

Open
mdetrano opened this issue Sep 12, 2024 · 0 comments
Open

OIDCUnAuthAction does not support boolean expression #2566

mdetrano opened this issue Sep 12, 2024 · 0 comments

Comments

@mdetrano
Copy link

Use Case

mod_auth_openidc supports adding a boolean expression after "OIDCUnAuthAction {action}" to specify conditions that should be met to override the default action. This module seems to prohibit configuring that option for UnAuthAction.

Describe the Solution You Would Like

The system should accept configuration like:

oidc_settings => {
    'UnAuthAction' => 'pass "%{HTTP_ACCEPT} !~ m#text/html#"',
   ...
},

Describe Alternatives You've Considered

I could work around this issue by changing the spec in types/oidcsettings.pp to:
Optional['UnAuthAction'] => Pattern[/^(auth|pass|401|407|410)\s.*/],

Additional Context

OIDC Settings Documentation: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant