|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.core.accesscontrol.sso.CookieBasedSSO
public class CookieBasedSSO
a single sign-on task which provides a session cookie with a token that allows database lookups on the user which is signed in.
Both the path and the domain of the cookie can be configured.
The table for storing the single sign-on information is expected to have to following definition:
| token VARCHAR(255) PRIMARY KEY NOT NULL |
username VARCHAR(255) | password VARCHAR(255) | email VARCHAR(255) | created BIGINT(20) |
CREATE TABLE x_singlesignon (token VARCHAR(255) PRIMARY KEY NOT NULL,
username VARCHAR(255), password VARCHAR(255), email VARCHAR(255), created
BIGINT(20));
| Constructor Summary | |
|---|---|
CookieBasedSSO()
|
|
| Method Summary | |
|---|---|
void |
initialize(CookieBasedSSOConfig cfg)
initialises the task. |
void |
signOff(User user, ServiceRequest request)
is called upon a successful log off from pulse. |
void |
signOn(User user,
java.lang.String passwd, ServiceRequest request)
is called upon a successful log in to pulse. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieBasedSSO()
| Method Detail |
|---|
public final void signOff(User user, ServiceRequest request)
ISingleSignOnTask
signOff in interface ISingleSignOnTaskuser - the user to be signed offrequest - the current request
public final void signOn(User user,
java.lang.String passwd, ServiceRequest request)
ISingleSignOnTask
signOn in interface ISingleSignOnTaskuser - the user to be signed onpasswd - the clear-text passwordrequest - the current requestpublic void initialize(CookieBasedSSOConfig cfg)
initialize in interface Configurable<CookieBasedSSOConfig>cfg - the configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||