Package org.jboss.errai.security.shared.api.identity

Examples of org.jboss.errai.security.shared.api.identity.User$StandardUserProperties


    return keycloakUser;
  }

  protected User createKeycloakUser(final AccessToken accessToken) {
    final User user = new UserImpl(accessToken.getId(), createRoles(accessToken
            .getRealmAccess().getRoles()));

    final Collection<KeycloakProperty> properties = getKeycloakUserProperties(accessToken);

    for (KeycloakProperty property : properties) {
      if (property.hasValue()) {
        user.setProperty(property.name, property.value);
      }
    }

    return user;
  }
View Full Code Here


  @Inject
  private AuthenticationService authenticationService;

  @Override
  public String hello() {
    final User user = authenticationService.getUser();
    String name = user.getProperty(FIRST_NAME) + " " + user.getProperty(LAST_NAME);
    return "Hello " + name + " how are you";
  }
View Full Code Here

TOP

Related Classes of org.jboss.errai.security.shared.api.identity.User$StandardUserProperties

Copyright © 2018 www.massapicom. 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.