Skip to content

Commit ab3e8e1

Browse files
committed
initial commit
0 parents  commit ab3e8e1

21 files changed

+2889
-0
lines changed

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
5+
6+
### IntelliJ IDEA ###
7+
.idea/
8+
*.iws
9+
*.iml
10+
*.ipr
11+
12+
### Eclipse ###
13+
.apt_generated
14+
.classpath
15+
.factorypath
16+
.project
17+
.settings
18+
.springBeans
19+
.sts4-cache
20+
21+
### NetBeans ###
22+
/nbproject/private/
23+
/nbbuild/
24+
/dist/
25+
/nbdist/
26+
/.nb-gradle/
27+
build/
28+
!**/src/main/**/build/
29+
!**/src/test/**/build/
30+
31+
### VS Code ###
32+
.vscode/
33+
34+
### Mac OS ###
35+
.DS_Store

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM quay.io/keycloak/keycloak:21.1.1
2+
3+
#COPY target/lib/*.jar ./providers/
4+
COPY target/keycloak-spi-trusted-device-*-SNAPSHOT.jar /opt/keycloak/providers/keycloak-spi-trusted-device.jar

docker-compose.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: "3.9"
2+
3+
services:
4+
postgres:
5+
image: postgres:14
6+
restart: on-failure
7+
environment:
8+
- POSTGRES_DB=keycloak
9+
- POSTGRES_USER=postgres
10+
- POSTGRES_PASSWORD=postgres
11+
volumes:
12+
- "postgres:/var/lib/postgresql/data"
13+
keycloak:
14+
build: .
15+
restart: on-failure
16+
command: [
17+
"start-dev",
18+
"--http-port", "8680"
19+
]
20+
environment:
21+
- KC_DB=postgres
22+
- KC_DB_USERNAME=postgres
23+
- KC_DB_PASSWORD=postgres
24+
- KC_HOSTNAME=localhost
25+
- KC_DB_URL=jdbc:postgresql://postgres/keycloak
26+
- KEYCLOAK_ADMIN=admin
27+
- KEYCLOAK_ADMIN_PASSWORD=admin
28+
- JAVA_OPTS_APPEND=-agentlib:jdwp=transport=dt_socket,server=y,address=0.0.0.0:8681,suspend=n
29+
ports:
30+
- "8680:8680"
31+
- "8681:8681"
32+
volumes:
33+
postgres:

pom.xml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>org.example</groupId>
7+
<artifactId>keycloak-spi-trusted-device</artifactId>
8+
<version>1.0-SNAPSHOT</version>
9+
<packaging>jar</packaging>
10+
11+
<name>keycloak-spi-trusted-device</name>
12+
<url>http://maven.apache.org</url>
13+
14+
<properties>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
<maven.compiler.source>1.8</maven.compiler.source>
17+
<maven.compiler.target>1.8</maven.compiler.target>
18+
<keycloak.version>21.1.1</keycloak.version>
19+
<lombok.version>1.18.24</lombok.version>
20+
<reproducible-build-maven-plugin.version>0.13</reproducible-build-maven-plugin.version>
21+
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
22+
<auto-service.version>1.0.1</auto-service.version>
23+
</properties>
24+
25+
<dependencies>
26+
<dependency>
27+
<groupId>org.projectlombok</groupId>
28+
<artifactId>lombok</artifactId>
29+
<version>${lombok.version}</version>
30+
<scope>provided</scope>
31+
</dependency>
32+
<dependency>
33+
<groupId>com.google.auto.service</groupId>
34+
<artifactId>auto-service-annotations</artifactId>
35+
<version>${auto-service.version}</version>
36+
<scope>provided</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>org.keycloak</groupId>
40+
<artifactId>keycloak-core</artifactId>
41+
<version>${keycloak.version}</version>
42+
<scope>provided</scope>
43+
</dependency>
44+
<dependency>
45+
<groupId>org.keycloak</groupId>
46+
<artifactId>keycloak-services</artifactId>
47+
<version>${keycloak.version}</version>
48+
<scope>provided</scope>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.keycloak</groupId>
52+
<artifactId>keycloak-model-jpa</artifactId>
53+
<version>${keycloak.version}</version>
54+
<scope>provided</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.keycloak</groupId>
58+
<artifactId>keycloak-server-spi</artifactId>
59+
<version>${keycloak.version}</version>
60+
<scope>provided</scope>
61+
</dependency>
62+
</dependencies>
63+
64+
<build>
65+
<plugins>
66+
<plugin>
67+
<groupId>io.github.zlika</groupId>
68+
<artifactId>reproducible-build-maven-plugin</artifactId>
69+
<version>${reproducible-build-maven-plugin.version}</version>
70+
<executions>
71+
<execution>
72+
<goals>
73+
<goal>strip-jar</goal>
74+
</goals>
75+
</execution>
76+
</executions>
77+
</plugin>
78+
<plugin>
79+
<artifactId>maven-compiler-plugin</artifactId>
80+
<version>${maven-compiler-plugin.version}</version>
81+
<configuration>
82+
<annotationProcessorPaths>
83+
<path>
84+
<groupId>org.projectlombok</groupId>
85+
<artifactId>lombok</artifactId>
86+
<version>${lombok.version}</version>
87+
</path>
88+
<path>
89+
<groupId>com.google.auto.service</groupId>
90+
<artifactId>auto-service</artifactId>
91+
<version>${auto-service.version}</version>
92+
</path>
93+
</annotationProcessorPaths>
94+
</configuration>
95+
</plugin>
96+
</plugins>
97+
</build>
98+
</project>

0 commit comments

Comments
 (0)