-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(deps): bump golang.org/x/net Bumps the go_modules group with 1 update in the / directory: [golang.org/x/net](https://github.com/golang/net). Updates `golang.org/x/net` from 0.17.0 to 0.23.0 - [Commits](golang/net@v0.17.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production dependency-group: go_modules ... Signed-off-by: dependabot[bot] <support@github.com> * Updated CodeQL and GoReleaser versions * chore(deps): bump github.com/hashicorp/go-retryablehttp Bumps the go_modules group with 1 update in the / directory: [github.com/hashicorp/go-retryablehttp](https://github.com/hashicorp/go-retryablehttp). Updates `github.com/hashicorp/go-retryablehttp` from 0.7.1 to 0.7.7 - [Changelog](https://github.com/hashicorp/go-retryablehttp/blob/main/CHANGELOG.md) - [Commits](hashicorp/go-retryablehttp@v0.7.1...v0.7.7) --- updated-dependencies: - dependency-name: github.com/hashicorp/go-retryablehttp dependency-type: direct:production dependency-group: go_modules ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump google.golang.org/protobuf Bumps the go_modules group with 1 update in the / directory: google.golang.org/protobuf. Updates `google.golang.org/protobuf` from 1.30.0 to 1.33.0 --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: indirect dependency-group: go_modules ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): bump tj-actions/changed-files Bumps the github_actions group with 1 update in the /.github/workflows directory: [tj-actions/changed-files](https://github.com/tj-actions/changed-files). Updates `tj-actions/changed-files` from 1.1.3 to 41.0.0 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](tj-actions/changed-files@v1.1.3...v41.0.0) --- updated-dependencies: - dependency-name: tj-actions/changed-files dependency-type: direct:production dependency-group: github_actions ... Signed-off-by: dependabot[bot] <support@github.com> * Fixed gradle build to work again - Shortened build.gradle - Run docker container manually - Fix gradle build for example-extension - Fixed failing java keystore tests, version updates, removed custom image build * Set Terraform version to 1.9.5 for tests * Fix KC19 build * Skip using custom-user-federation-example in CI --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
3f6b75b
commit d65c3b8
Showing
18 changed files
with
146 additions
and
174 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,22 @@ | ||
buildscript { | ||
ext.kotlinVersion = '1.3.31' | ||
ext.keycloakVersion = '19.0.2' | ||
ext.shadowJarVersion = '4.0.2' | ||
|
||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}" | ||
classpath "com.github.jengelman.gradle.plugins:shadow:${shadowJarVersion}" | ||
} | ||
} | ||
|
||
apply { | ||
plugin 'java' | ||
plugin 'kotlin' | ||
plugin 'com.github.johnrengelman.shadow' | ||
plugins { | ||
id 'org.jetbrains.kotlin.jvm' version '2.0.20' | ||
id 'com.gradleup.shadow' version '8.3.0' | ||
id 'java-library' | ||
} | ||
|
||
shadowJar { | ||
classifier = null | ||
ext { | ||
keycloakVersion = '21.0.1' | ||
} | ||
|
||
dependencies { | ||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}" | ||
compile "org.keycloak:keycloak-core:${keycloakVersion}" | ||
compile "org.keycloak:keycloak-services:${keycloakVersion}" | ||
compile "org.keycloak:keycloak-server-spi:${keycloakVersion}" | ||
compile "org.keycloak:keycloak-server-spi-private:${keycloakVersion}" | ||
compile "org.keycloak:keycloak-model-legacy:${keycloakVersion}" | ||
compileOnly "org.keycloak:keycloak-services:${keycloakVersion}" | ||
compileOnly "org.keycloak:keycloak-model-legacy:${keycloakVersion}" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
compileKotlin { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
|
||
compileTestKotlin { | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
kotlin { | ||
jvmToolchain(11) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...tion-example/src/main/kotlin/com/github/mrparkers/keycloak/CustomEventListenerProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.github.mrparkers.keycloak | ||
|
||
import org.keycloak.events.Event | ||
import org.keycloak.events.EventListenerProvider | ||
import org.keycloak.events.admin.AdminEvent | ||
import org.keycloak.models.KeycloakSession | ||
|
||
class CustomEventListenerProvider(session: KeycloakSession) : EventListenerProvider { | ||
|
||
override fun onEvent(event: Event) { | ||
// | ||
} | ||
|
||
override fun onEvent(adminEvent: AdminEvent, includeRep: Boolean) { | ||
// | ||
} | ||
|
||
override fun close() { | ||
// NOOP | ||
} | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...ample/src/main/kotlin/com/github/mrparkers/keycloak/CustomEventListenerProviderFactory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.github.mrparkers.keycloak | ||
|
||
import org.keycloak.Config | ||
import org.keycloak.events.EventListenerProvider | ||
import org.keycloak.events.EventListenerProviderFactory | ||
import org.keycloak.models.KeycloakSession | ||
import org.keycloak.models.KeycloakSessionFactory | ||
|
||
class CustomEventListenerProviderFactory : EventListenerProviderFactory { | ||
|
||
override fun create(session: KeycloakSession): EventListenerProvider { | ||
return CustomEventListenerProvider(session); | ||
} | ||
|
||
override fun init(config: Config.Scope) { | ||
// NOOP | ||
} | ||
|
||
override fun postInit(sessionFactory: KeycloakSessionFactory) { | ||
// NOOP | ||
} | ||
|
||
override fun close() { | ||
// NOOP | ||
} | ||
|
||
override fun getId(): String { | ||
return "example-listener"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
custom-user-federation-example/src/main/resources/META-INF/jboss-deployment-structure.xml
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ple/src/main/resources/META-INF/services/org.keycloak.events.EventListenerProviderFactory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
com.github.mrparkers.keycloak.CustomEventListenerProviderFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.