Note that there are some explanatory texts on larger screens.

plurals
  1. POSSO Issue With ZK Framework?
    primarykey
    data
    text
    <p>I am using SSO login for my web-application.My code is as given below:</p> <pre><code>@Command("doSSOLogin") @NotifyChange("showConflictWindow") public void doSSOLogin(@ContextParam(ContextType.VIEW) Component view) { logger.info("Login Button is clicked.."); doSSOLoginAuthorization(LoginType.LOGIN_IF_NO_CONFLICT); } private void doSSOLoginAuthorization(LoginType argLoginType) { HttpServletResponse response = getHttpServletResponse(); HttpServletRequest request = getHttpServletRequest(); if (selectedDatabase == null) { Messagebox.show("Must select a database", "Error", Messagebox.OK, Messagebox.ERROR); return; } String Authorization = request.getHeader("Authorization"); if (Authorization == null) { logger.info("Authoriztion is null"); response.reset(); response.setHeader("WWW-Authenticate", "NEGOTIATE"); response.setContentLength(0); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.setHeader("connectionCache", selectedDatabase.getValue()); response.setHeader("languageType", selectedLanguage.getValue()); try { response.flushBuffer(); } catch (IOException e) { e.printStackTrace(); } return; } else { String token = Authorization.substring("NEGOTIATE ".length()); logger.info("Authoriztion is not null having token ::" + token); if (token.startsWith("TlRM")) { logger.debug("We do not support NTLM authentication: " + token); System.out.println("We do not support NTLM authentication"); return; } } } </code></pre> <p>When a user clicks on login button it goes through this code &amp; first time Authorization is null.So set authorization in request header and asks for window credentials &amp; second time when I click on this button again,I get Authorization. But I dont want to click button again and this work should be done on single click as it is already work in my previous application but technology was jsp.</p> <p>Is it issue of using ZK or something else in my code? If you have any solution to call back ,please help me out.</p> <p>Thanks in Advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload