Examples of AuthenticationType


Examples of com.eclipsesource.restfuse.AuthenticationType

 
  private void addAuthentication( HttpTest call, InternalRequest request ) {
    Authentication[] authentications = call.authentications();
    if( authentications != null ) {
      for( Authentication authentication : authentications ) {
        AuthenticationType type = authentication.type();
        String user = authentication.user();
        String password = authentication.password();
        request.addAuthenticationInfo( new AuthenticationInfo( type, user, password ) );
      }
    }
View Full Code Here

Examples of com.eclipsesource.restfuse.AuthenticationType

  private void addAuthentication( HttpTest call, InternalRequest request) {
    Authentication[] authentications = call.authentications();
    if( authentications != null ) {
      for( Authentication authentication : authentications ) {
        AuthenticationType type = authentication.type();
        String user = authentication.user();
        String password = authentication.password();
        request.addAuthenticationInfo( new AuthenticationInfo( type, user, password ) );
      }
    }
View Full Code Here

Examples of com.eclipsesource.restfuse.AuthenticationType

  private void addAuthentication( HttpTest call, InternalRequest request ) {
    Authentication[] authentications = call.authentications();
    if( authentications != null ) {
      for( Authentication authentication : authentications ) {
        AuthenticationType type = authentication.type();
        String user = authentication.user();
        String password = authentication.password();
        request.addAuthenticationInfo( new AuthenticationInfo( type, user, password ) );
      }
    }
View Full Code Here

Examples of com.gitblit.Constants.AuthenticationType

    UserModel user = app().authentication().authenticate(request);

    // Login the user
    if (user != null) {
      // preserve the authentication type across session replacement
      AuthenticationType authenticationType = (AuthenticationType) request.getSession()
          .getAttribute(Constants.AUTHENTICATION_TYPE);

      // issue 62: fix session fixation vulnerability
      session.replaceSession();
      session.setUser(user);
View Full Code Here

Examples of com.gitblit.Constants.AuthenticationType

   */
  @Override
  public void setCookie(HttpServletRequest request, HttpServletResponse response, UserModel user) {
    if (settings.getBoolean(Keys.web.allowCookieAuthentication, true)) {
      HttpSession session = request.getSession();
      AuthenticationType authenticationType = (AuthenticationType) session.getAttribute(Constants.AUTHENTICATION_TYPE);
      boolean standardLogin = authenticationType.isStandard();

      if (standardLogin) {
        Cookie userCookie;
        if (user == null) {
          // clear cookie for logout
View Full Code Here

Examples of com.gitblit.Constants.AuthenticationType

      GitBlitWebSession session = GitBlitWebSession.get();
      UserModel user = session.getUser();
      boolean editCredentials = app().authentication().supportsCredentialChanges(user);
      HttpServletRequest request = ((WebRequest) getRequest()).getHttpServletRequest();
      AuthenticationType authenticationType = (AuthenticationType) request.getSession().getAttribute(Constants.AUTHENTICATION_TYPE);
      boolean standardLogin = authenticationType.isStandard();

      if (app().settings().getBoolean(Keys.web.allowGravatar, true)) {
        add(new GravatarImage("username", user, "navbarGravatar", 20, false));
      } else {
        add(new Label("username", user.getDisplayName()));
View Full Code Here

Examples of com.mucommander.commons.file.AuthenticationType

      CredentialsMapping newCredentialsMapping = null;
      // True if Guest authentication was selected in the authentication dialog (guest credentials must not be
      // added to CredentialsManager)
      boolean guestCredentialsSelected = false;

      AuthenticationType authenticationType = folderURL.getAuthenticationType();
      if(credentialsMapping!=null) {
        newCredentialsMapping = credentialsMapping;
        CredentialsManager.authenticate(folderURL, newCredentialsMapping);
      }
      // If the URL doesn't contain any credentials and authentication for this file protocol is required, or
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.user.model.AuthenticationType

           
            if (usersWithSameName.isEmpty()) {
              // Get authentication type
              HttpServletRequest request = ((ServletWebRequest) RequestCycle.get().getRequest()).getContainerRequest();
              Authentication authentication = (Authentication) request.getSession().getAttribute(Pac4jAuthenticationUtils.AUTH_TOKEN_ATTRIBUTE);
              AuthenticationType authenticationType = Pac4jAuthenticationUtils.getAuthenticationType(authentication);
             
              userService.register(user, authenticationType, passwordValue);
             
              // Reset authentication session attribute
              request.getSession().removeAttribute(Pac4jAuthenticationUtils.AUTH_TOKEN_ATTRIBUTE);
View Full Code Here

Examples of javax.annotation.Resource.AuthenticationType

      ResourceReferenceMetaData ref = new ResourceReferenceMetaData();
      String name = annotation.name();
      if(name.length() == 0)
         name = getName(element);
      ref.setResourceRefName(name);
      AuthenticationType authType = annotation.authenticationType();
      ResourceAuthorityType resAuthType = ResourceAuthorityType.Container;
      if(authType == AuthenticationType.APPLICATION)
         resAuthType = ResourceAuthorityType.Application;
      ref.setResAuth(resAuthType);
      if(annotation.mappedName().length() > 0)
View Full Code Here

Examples of javax.annotation.Resource.AuthenticationType

      ResourceReferenceMetaData ref = new ResourceReferenceMetaData();
      String name = annotation.name();
      if(name.length() == 0)
         name = getName(element);
      ref.setResourceRefName(name);
      AuthenticationType authType = annotation.authenticationType();
      ResourceAuthorityType resAuthType = ResourceAuthorityType.Container;
      if(authType == AuthenticationType.APPLICATION)
         resAuthType = ResourceAuthorityType.Application;
      ref.setResAuth(resAuthType);
      if(annotation.mappedName().length() > 0)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.