close
Skip to content

Add filters to override Shib-provided username and email#74

Merged
jrchamp merged 4 commits into
michaelryanmcneill:masterfrom
dsXLII:feature/filters-munge-shibattrs
Aug 27, 2021
Merged

Add filters to override Shib-provided username and email#74
jrchamp merged 4 commits into
michaelryanmcneill:masterfrom
dsXLII:feature/filters-munge-shibattrs

Conversation

@dsXLII
Copy link
Copy Markdown

@dsXLII dsXLII commented Jul 21, 2021

As discussed in issue 73, this PR adds filters to override the Shib-provided username and email address. There's also a warning that this is, in the general sense, a Bad Idea. Please squash these commits before merging, I'm bad at Git.

Resolves #73

Copy link
Copy Markdown
Collaborator

@jrchamp jrchamp left a comment

Choose a reason for hiding this comment

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

I noticed a couple of spaces that might be extra, but as long as this works for your use case, it seems reasonable to me.

Comment thread shibboleth.php Outdated
Comment thread shibboleth.php Outdated
@dsXLII dsXLII marked this pull request as ready for review July 21, 2021 18:41
Copy link
Copy Markdown
Collaborator

@jrchamp jrchamp left a comment

Choose a reason for hiding this comment

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

Approving, as these filters provide an important opportunity for a WordPress administrator to meet their needs. For a malicious user to abuse these, they would need to be able to inject custom hooks, which is already possible in core WordPress (thus, no change).

Before merging, I will tag @michaelryanmcneill to see if there are other considerations that I am not thinking of.

@jrchamp jrchamp merged commit f706cf0 into michaelryanmcneill:master Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usernames with apostrophes - not sure how to handle them

3 participants