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.

  1. Add checkbox for all roles on admin page.
  2. Place role granting code near user granting around line 293.

Comments

doublejosh’s picture

Created 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.

doublejosh’s picture

Version: 6.x-2.7 » 7.x-1.2
StatusFileSize
new4.53 KB

Here's the patch.

doublejosh’s picture

Title: Allow local (Drupal) authentication for roles » Allow local (Drupal) authentication by role
doublejosh’s picture

Status: Active » Needs review
doublejosh’s picture

Switching UI to user a multiple select, but will save that for the new branch :)

geekwisdom’s picture

Status: Closed (fixed) » Closed (works as designed)
geekwisdom’s picture

Status: Needs review » Closed (fixed)
doublejosh’s picture

Status: Closed (works as designed) » Closed (fixed)

Can I beg for attribution on some additions :)
Gotta boost that certified to rock score.

Thanks for incorporating stuff!

geekwisdom’s picture

I 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?

doublejosh’s picture

No 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.