congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
leap.web
Code IndexAdd Tabnine to your IDE (free)

How to use leap.web

Best Java code snippets using leap.web (Showing top 20 results out of 315)

origin: org.leapframework/leap-oauth2-server

@Override
public AuthzSSOSession getSSOSession(Request request, Response response,
                   AuthzAuthentication authc) throws Throwable {
  return (AuthzSSOSession)request.getAttribute(SSO_SESSION_ATTR_NAME);
}
origin: org.leapframework/leap-websecurity

/**
 * Ignores the csrf checking in the http request.
 */
public static void ignore(Request request) {
  request.setAttribute(CSRF_IGNORED_KEY, Boolean.TRUE);
}
origin: org.leapframework/leap-websecurity

@Override
public void handleLoginFailure(Request request, Response response, LoginContext context) throws Throwable {
  response.setStatus(HTTP.SC_UNAUTHORIZED);
  
  //TODO : error message
}

origin: org.leapframework/leap-oauth2-server

public RequestOAuth2Params(Request request) {
  this.request   = request;
  this.grantType = request.getParameter(GRANT_TYPE);
}

origin: org.leapframework/leap-websecurity

  protected final String getCacheKey(Request request){
    return request.getMethod() + "$" + request.getPath();
  }
}
origin: org.leapframework/leap-oauth2-webapp

@Override
public boolean isProxyRequest(Request request) {
  return request.getHeader(X_FORWARDED_HOST)!=null||
      request.getHeader(X_FORWARDED_FOR)!=null||
      request.getHeader(X_FORWARDED_SERVER)!=null||
      request.getHeader(X_FORWARDED_PROTOCOL)!=null;
}
origin: org.leapframework/leap-websecurity

@Override
public Validation validation() {
  return request.getValidation();
}
origin: org.leapframework/leap-spring-boot-web

  @Override
  public AppContext context() {
    return filter.context();
  }
};
origin: org.leapframework/leap-spring-boot-web

@Override
public BeanFactory factory() {
  return filter.factory();
}
origin: org.leapframework/leap-websecurity

@Override
public void handleLogoutSuccess(Request request, Response response, LogoutContext context) throws Throwable {
  response.setStatus(HTTP.SC_OK);
}

origin: org.leapframework/leap-oauth2-server

@Override
public AuthzSSOLogin getCurrentSSOLogin(Request request, Response response,
                     AuthzAuthentication authc) throws Throwable {
  return (AuthzSSOLogin)request.getAttribute(SSO_LOGIN_ATTR_NAME);
}
origin: org.leapframework/leap-oauth2-server

@Override
public String getParameter(String name) {
  return request.getParameter(name);
}

origin: org.leapframework/leap-oauth2

@Override
public boolean isProxyRequest(Request request) {
  return request.getHeader(X_FORWARDED_HOST)!=null||
      request.getHeader(X_FORWARDED_FOR)!=null||
      request.getHeader(X_FORWARDED_SERVER)!=null||
      request.getHeader(X_FORWARDED_PROTOCOL)!=null;
}
origin: org.leapframework/leap-oauth2

@Override
public void setSSOSession(AuthzSSOSession session, Request request, AuthzAuthentication authc) throws Throwable {
  request.setAttribute(SSO_SESSION_ATTR_NAME,session);
}
origin: org.leapframework/leap-websecurity

@Override
public void promoteLogin(Request request, Response response, LoginContext context) throws Throwable {
  response.setStatus(HTTP.SC_UNAUTHORIZED);
}
origin: org.leapframework/leap-oauth2

@Override
public AuthzSSOLogin getCurrentSSOLogin(Request request, Response response,
                     AuthzAuthentication authc) throws Throwable {
  return (AuthzSSOLogin)request.getAttribute(SSO_LOGIN_ATTR_NAME);
}
origin: org.leapframework/leap-oauth2

@Override
public String getParameter(String name) {
  return request.getParameter(name);
}

origin: org.leapframework/leap-oauth2

@Override
public void setCurrentSSOLogin(AuthzSSOLogin login, Request request, AuthzAuthentication authc) throws Throwable {
  request.setAttribute(SSO_LOGIN_ATTR_NAME,login);
}
origin: org.leapframework/leap-websecurity

/**
 * Returns true if csrf checking is ignored in the http request.
 */
public static boolean isIgnored(Request request) {
  Object v = request.getAttribute(CSRF_IGNORED_KEY);
  return Boolean.TRUE == v;
}
origin: org.leapframework/leap-oauth2

@Override
public AuthzSSOSession getSSOSession(Request request, Response response,
                   AuthzAuthentication authc) throws Throwable {
  return (AuthzSSOSession)request.getAttribute(SSO_SESSION_ATTR_NAME);
}
leap.web

Most used classes

  • Response
  • App
  • Request
  • SecurityConfigurator
    The configurator of SecurityConfig.
  • Routes
  • Action,
  • RouteConfigurator,
  • SecurityConfig,
  • AuthenticationContext,
  • AuthenticationManager,
  • LoginContext,
  • ActionContext,
  • Argument,
  • DynaApi,
  • MApiModelBuilder,
  • MApiPropertyBuilder,
  • MApiValidationBuilder,
  • ApiErrorHandler,
  • ModelQueryExecutor
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now