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

Feature/thread safe config - PR2 #2

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

mzappino-noz
Copy link

This PR fixes MetadataBuilder. Now it uses self.configurator correctly.

@mzappino-noz mzappino-noz requested review from andnoz and wmotti December 9, 2024 12:38
Copy link
Collaborator

@andnoz andnoz left a comment

Choose a reason for hiding this comment

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

Nice! 🚀

@@ -152,7 +152,7 @@ def raw_algorithm
private :raw_algorithm

def x509_certificate
certificate = SamlIdp.config.x509_certificate.is_a?(Proc) ? SamlIdp.config.x509_certificate.call : SamlIdp.config.x509_certificate
certificate = configurator.x509_certificate.is_a?(Proc) ? configurator.x509_certificate.call : configurator.x509_certificate
Copy link

Choose a reason for hiding this comment

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

since the "dynamic configuration via Proc" feature has been deprecated upstream, maybe we can simplify this and write:

certificate = configurator.x509_certificate

Copy link

Choose a reason for hiding this comment

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

We'll address this issue later, maybe with upstream

Copy link

@wmotti wmotti left a comment

Choose a reason for hiding this comment

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

LGTM

@mzappino-noz mzappino-noz merged commit 76fcfa1 into master Dec 9, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants