I propose to extend existing
sso.redirect functionality for simplification of SSO integration.
External program pointed by sso.redirect should accept 2 parameters action= and returnPath= of similira meaning of jforum.
In few places, where sso integration is required we put a link to this program.
There few such places need to be modified.
When SSO is enabled we put following links (here I assume the uiser ID is 2222)
1. Send private message
(what we already have now -
https://coderanch.com/t/575167 )
sso.redirect+"?"+ action=
login & returnPath=
/pm/sendTo/2222.page
here is just slightly modified URL convention compared to
https://coderanch.com/t/575167
2. Top link "Edit user profile" (shown to registered users)
On this page instead of "Register Information" section of the profile put a link to
sso.redirect+"?"+ action=
edit & returnPath=
/user/edit/2222.page
3. Top link "login" (shown on top of all pages shown to anonymous)
sso.redirect+"?"+ action=
login & returnPath=
/
4. Top link "register" (on top of all pages shown to anonymous)
sso.redirect+"?"+ action=
insert & returnPath=
/
Looks this is it. No more places to modify (correct me if I missed something).
This way SSO integration would be greatly simplified.
A user just implements authorization class and make a script sso.redirect
(or a set of scripts, it is easy to redirect requests based on form parameters)
which does actual login and account creation for internal users list.
[originally posted on jforum.net by Anonymous]