My situation requires the local authentication be available only for specific roles. It's a little counter-intuitive, but we need this for guests/pre-validated users rather than any admin type. This in order to allow website accounts for participation, but without a full SSO account to the rest of our systems. Once a full account is reached we want to require SSO be the authentication method, so just "guest user" will be allowed mixed mode.
Hoping others have this need.
- Add checkbox for all roles on admin page.
- Place role granting code near user granting around line 293.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | simplesamlphp_auth-local-role-login-1377848-2.patch | 4.53 KB | doublejosh |
Comments
Comment #1
doublejosh commentedCreated this via input matching the user ID list with role IDs.
Code working in staging environment. No patch yet. Contact me if you'd like to use it and help refine.
Comment #2
doublejosh commentedHere's the patch.
Comment #3
doublejosh commentedComment #4
doublejosh commentedComment #5
doublejosh commentedSwitching UI to user a multiple select, but will save that for the new branch :)
Comment #6
geekwisdom commentedThis is now in the 7.x-2.x branch
See: http://drupalcode.org/project/simplesamlphp_auth.git/commit/d64b08e9f72f...
Comment #7
geekwisdom commentedComment #8
doublejosh commentedCan I beg for attribution on some additions :)
Gotta boost that certified to rock score.
Thanks for incorporating stuff!
Comment #9
geekwisdom commentedI am happy to give credit where credit is due.
I have added your name as a contributor on http://drupal.org/project/simplesamlphp_auth and I have attributed all your changes that I committed to the 7.x-2.x branch, see: http://drupalcode.org/project/simplesamlphp_auth.git/log/refs/heads/7.x-2.x
How/where else would you like attribution?
Comment #10
doublejosh commentedNo biggie at all BTW.
http://drupal.org/node/1146430
On user profiles there is an item called "Git attribution" which gives you the param to add to commit messages.