Some SAML providers - like the Belgian government - have their own authn contexts, so we should be able to add those.

Issue fork saml_sp-3385812

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Matthijs created an issue. See original summary.

matthijs’s picture

Status: Active » Needs review

This MR changes the return of saml_sp_authn_context_class_refs() and adds an alter hook.

jproctor’s picture

Status: Needs review » Needs work

This is a great improvement but it changes the API for an existing public method.

Can we make it backwards compatible and add a deprecation warning? I don’t see an easy way to do that other than changing the function name (remove class? spell out authentication or references?) but you may have another idea.

matthijs’s picture

I personally don't think changing the functions outcome is a problem since it's not a class method, but if you do I suggest to move my changes to a new function, use that everywhere and adjust the existing function to call the new one and return a value in the same format as before.
WDYT?

jproctor’s picture

Status: Needs work » Needs review

I kept looking at the old function when I was sketching ideas for #3118296: Add extra fields to config and thinking we could do better, and I knew we had talked about it somewhere.

I caught your branch up to current 4.x, renamed the new function because it still makes me twitchy to change an exposed function even though I know no one is using it, and will merge it and tag a release in the next day or so.

  • jproctor committed eab394b6 on 4.x authored by matthijs
    feat: #3385812 Allow altering authn contexts
    
    By: matthijs
    By: jproctor
    
jproctor’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.