Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

SSO Logout does not work correctly

$
0
0

Hello!

I have a problem with the logout behavior of Single Sign On(SSO).

<
>
I am developing a web application of two on GlassFish 4.0.

[a-app] accepts the login.
[b-app] will accept the request after login.

[a-app] returns the [b-app] access URL after the login.
[a-app] access URL returned from [b-app] when accessed in the state that are not login.
[b-app] have a logout button.

The problem is operation when press the logout button of [b-app].
It does not return to the login screen If do not press twice the logout button.

Logout method is running both times indeed.
-----
public String logout() {
FacesContext ctx = FacesContext.getCurrentInstance();
ExternalContext ectx = ctx.getExternalContext();
HttpSession session = (HttpSession)ectx.getSession(false);
session.invalidate();
return("redirect-logout.xhtml");
}
-----

Are there any other How to logout to ensure in environment of SSO?


Viewing all articles
Browse latest Browse all 1091

Trending Articles