Posts

Showing posts with the label keycloak

Issue trying to launch sample project che-ide-server-extension

Image
Clash Royale CLAN TAG #URR8PPP Issue trying to launch sample project che-ide-server-extension With Eclipse Che, I've recently been able to deploy the docker container without any issue as provided in the instructions. I'm at the point where am trying to learn a bit more about extension development for Che, and I'm going through the small introduction on "developing your first plugin" located on the following page: https://www.eclipse.org/che/docs/che-in-che-quickstart.html I'm stuck at the point where I can successfully build and deploy the sample project by executing the Traefik Start , Tomcat8-IDE Start , Deploy IDE and Deploy Workspace Agent commands. But when it comes time to navigate to the newly created 2nd workspace by clicking on the link provided in the IDE to go to the newly created 2nd workplace instance...: ... I end up getting redirected to the following error page: I suspect that there may be some kind of configuration problem with the sample...

Keycloak is not maintaining session in browser

Image
Clash Royale CLAN TAG #URR8PPP Keycloak is not maintaining session in browser I am using keycloak openid-connect flow. For my client app, I am using: public class AuthenticationTest { public static void main(String args) { final String KEYCLOAK_JSON = Constants.KC_CONFIG_JSON_PATH; InputStream config = Thread.currentThread().getContextClassLoader().getResourceAsStream(KEYCLOAK_JSON); KeycloakInstalled keycloak; try { keycloak = new KeycloakInstalled(config); config.close(); keycloak.loginDesktop(); AccessToken token = keycloak.getToken(); System.out.printf("UserId: %s%n", token.getSubject()); System.out.printf("Username: %s%n", token.getPreferredUsername()); System.out.printf("Email: %s%n", token.getEmail()); System.out.println(keycloak.getTokenString()); System.in.read(); } catch (IOException | VerificationException | OAuthErrorException | URISyntaxExcepti...