-
Notifications
You must be signed in to change notification settings - Fork 39
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
Create UI for Role to CAS/LDAP attribute mappings #75
Comments
Related: #7 |
Any work done for this already, otherwise I would take a swing at it |
A pull request would be awesome, even if partially implemented. The only work we've done so far is conceptual; no code has been written. Here's what we're thinking:
CAS/LDAP attributes that are not simple strings may be more difficult; might have to parse multi-valued attributes. Each list item might also have a button (or be expandable) to show a list of users that have logged in and matched that mapping. But this would require setting some usermeta value indicating which mapping the user matched to last. There's some complexity in Authorizer for multisite settings, where the multisite settings override subsite settings, but you can leave that part out and just implement it for single site for now to make it easier. Thanks again for any contributions you end up making! |
This functionality would be great to have. We have done some role mapping through wp-hooks via the functions.php file. Having this capability via the UI would be really nice. |
I believe this would be the best functionality to add to the plugin, since most of the CAS servers have extra attributes that Authorizer users need to aquire. |
so Im finally getting around to it, what do you use to develpo wordpress plugins? |
@Scriptkiddi You may want to start with reading https://developer.wordpress.org/plugins/ You will need a local WordPress install to test with. |
@pkarjala thanks, but i was looking for an ide setup |
Any text editor should do. I use Sublime Text 3. As long as you can monitor the error logs on your test server, you shouldn't require a full-fledged debugger, but if you find yourself needing one to integrate with xdebug, take a look at phpstorm.
|
Currently can do this with
authorizer_allow_login
,authorizer_custom_role
, andauthorizer_automatically_approve_login
hooks, but a UI for defining the mappings would be nice.Implement an extra tab on the Authorizer options page that has a list of rules that you've defined. Would need to cache possible attributes from prior logins to show suggestions to users. (Probably should only cache attributes, not values, because of potential sensitive data).
The text was updated successfully, but these errors were encountered: