-
Notifications
You must be signed in to change notification settings - Fork 3
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
How to get SAML attributes? #28
Comments
Do you see anything in the global References that may be useful RE: |
I commented the $category lines:
But no luck. I'm wondering about the switch from Using devel to debug shows the saml attributes are all there. Just can't work out how to write them to the user fields. |
@marcus-leonard
I think you'll need to add it directly to the
I think that you're right that one of those pages needs updating to remove |
@marcus-leonard I filed this issue: backdrop-ops/docs.backdropcms.org#224 |
@laryn thank you! That's done it. Assuming this is ok to close. |
@marcus-leonard I merged a bunch of commits today -- are you able to test the latest dev version? I'd like to get a few other people doing tests on their ends before I make the next release. |
@laryn Yes, will do and let you know. |
@laryn To start with, admin UI and login behaviour are OK. Login, logout, working fine. I'm not having much luck with the module's block. I add it to a layout and set a visibility condition for =user/login= but it shows everywhere. I tell it have no title but it does anyway. I'm not very familiar with layouts yet, so I could be missing something, and I've always done a custom block for the SAML login (on Drupal) in the past, because I've got more control over how it looks. I'm getting an error that I doubt is being caused by simplesamlphp_auth but I'll note it here just in case. If I edit a profile field, I get two messages
This seems like a core bug(?), but this site is Bd 1.23.0 so I should probably update and see if it persists. Anyway, apart from the block issues (which could be me), SAML login functionality seems fine and it's passing the attributes to my helper module. |
@marcus-leonard That block issue sounds like maybe a layouts configuration misunderstanding. Is it perhaps added to multiple layouts (with configuration such as title differently set on different layouts)? On the password notice, I wonder if it could related to these settings: Maybe worth opening a new issue in this module's issue queue if you do some testing and think it's related to those. |
I have a basic D7 module which piggybacks on D7's simplesamlphp_auth module and populates some values into some user profile fields. (Doesn't have any config UI, the attributes to get are hard-coded in the module.) It's based on https://www.drupal.org/node/2414567 but it doesn't work on Backdrop.
Could I please get some pointers on getting it to work? I'm tinkering with something like this, but not getting anything in the user fields. (SimpleSAMLphp shows attributes arriving from IdP.)
The text was updated successfully, but these errors were encountered: