See: https://github.com/jboss-developer/jboss-eap-quickstarts/blob/7.2.0.GA/helloworld-mutual-ssl-secured
cd $JBOSS_HOME/standalone/configuration
package demo.plain; | |
import org.keycloak.OAuth2Constants; | |
import org.keycloak.admin.client.CreatedResponseUtil; | |
import org.keycloak.admin.client.Keycloak; | |
import org.keycloak.admin.client.KeycloakBuilder; | |
import org.keycloak.admin.client.resource.RealmResource; | |
import org.keycloak.admin.client.resource.UserResource; | |
import org.keycloak.admin.client.resource.UsersResource; | |
import org.keycloak.representations.idm.ClientRepresentation; |
package wb.junit5.tabledriven; | |
import org.junit.jupiter.api.DisplayName; | |
import org.junit.jupiter.api.DynamicTest; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.TestFactory; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.RecordComponent; |
{ | |
"authMethod": "openid-connect", | |
"redirectUri": "http://localhost:8080/admin/master/console/#/company-apps/groups", | |
"notes": { | |
"clientId": "7365e17b-b9d8-4553-8bf3-0aefddae464b", | |
"iss": "http://localhost:8080/realms/master", | |
"startedAt": "1713429283", | |
"response_type": "code", | |
"level-of-authentication": "-1", | |
"code_challenge_method": "S256", |
See: https://github.com/jboss-developer/jboss-eap-quickstarts/blob/7.2.0.GA/helloworld-mutual-ssl-secured
cd $JBOSS_HOME/standalone/configuration
import json | |
import logging | |
from flask import Flask, g | |
from flask_oidc import OpenIDConnect | |
import requests | |
logging.basicConfig(level=logging.DEBUG) | |
app = Flask(__name__) |
Run with:
-javaagent:/Users/tom/.m2/repository/org/springframework/spring-instrument/4.1.4.RELEASE/spring-instrument-4.1.4.RELEASE.jar
package com.thomasdarimont.training.keycloak.endpoints; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import jakarta.ws.rs.Consumes; | |
import jakarta.ws.rs.FormParam; | |
import jakarta.ws.rs.GET; | |
import jakarta.ws.rs.POST; | |
import jakarta.ws.rs.Path; | |
import jakarta.ws.rs.Produces; | |
import jakarta.ws.rs.QueryParam; |
<!doctype html> | |
<html> | |
<head> | |
<title>Spinning Cube</title> | |
<script type="text/javascript"> | |
function Point3D(x,y,z) { | |
this.x = x; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Keycloak SPA Demo</title> | |
<style> | |
body { |
package demo; | |
import java.io.Serializable; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Primary; | |
import org.springframework.data.redis.connection.RedisConnectionFactory; | |
import org.springframework.data.redis.core.RedisOperations; |