-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to keycloak 22.0.1 (support new admin console) (#37)
- Loading branch information
Showing
10 changed files
with
57 additions
and
211 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -11,33 +11,27 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
- name: Setup node 10 | ||
uses: actions/setup-node@v1 | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '10.x' | ||
- name: Cache for maven | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Cache for npm | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('.github/workflows/release.yml') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
node-version: '16' | ||
cache: 'yarn' | ||
- name: Setup semantic-release | ||
run: npm install -g @conveyal/[email protected] semantic-release@15 @semantic-release/[email protected] | ||
run: | | ||
yarn global add @conveyal/[email protected] semantic-release@15 | ||
echo "$(yarn global bin)" >> $GITHUB_PATH | ||
- name: Release | ||
run: semantic-release --branch master --use-conveyal-workflow --skip-maven-deploy | ||
# maven-semantic-release requires "maven-settings.xml" in the workspace directory | ||
run: | | ||
mv ~/.m2/settings.xml maven-settings.xml | ||
semantic-release --branch master --use-conveyal-workflow --skip-maven-deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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 |
---|---|---|
|
@@ -17,14 +17,14 @@ | |
|
||
package org.keycloak.social.discord; | ||
|
||
import org.keycloak.broker.oidc.OAuth2IdentityProviderConfig; | ||
import org.keycloak.models.IdentityProviderModel; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
import org.keycloak.broker.oidc.OAuth2IdentityProviderConfig; | ||
import org.keycloak.models.IdentityProviderModel; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Hiroyuki Wada</a> | ||
*/ | ||
|
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 |
---|---|---|
|
@@ -17,11 +17,14 @@ | |
|
||
package org.keycloak.social.discord; | ||
|
||
import org.keycloak.broker.oidc.OAuth2IdentityProviderConfig; | ||
import org.keycloak.broker.provider.AbstractIdentityProviderFactory; | ||
import org.keycloak.broker.social.SocialIdentityProviderFactory; | ||
import org.keycloak.models.IdentityProviderModel; | ||
import org.keycloak.models.KeycloakSession; | ||
import org.keycloak.provider.ProviderConfigProperty; | ||
import org.keycloak.provider.ProviderConfigurationBuilder; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Hiroyuki Wada</a> | ||
|
@@ -46,6 +49,18 @@ public DiscordIdentityProviderConfig createConfig() { | |
return new DiscordIdentityProviderConfig(); | ||
} | ||
|
||
@Override | ||
public List<ProviderConfigProperty> getConfigProperties() { | ||
return ProviderConfigurationBuilder.create() | ||
.property() | ||
.name("allowedGuilds") | ||
.type(ProviderConfigProperty.STRING_TYPE) | ||
.label("Guild Id(s) to allow federation") | ||
.helpText("If you want to allow federation for specific guild, enter the guild id. Please use a comma as a separator for multiple guilds.") | ||
.add() | ||
.build(); | ||
} | ||
|
||
@Override | ||
public String getId() { | ||
return PROVIDER_ID; | ||
|
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
7 changes: 0 additions & 7 deletions
7
src/main/resources/theme-resources/messages/admin-messages_en.properties
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...ain/resources/theme-resources/resources/partials/realm-identity-provider-discord-ext.html
This file was deleted.
Oops, something went wrong.
144 changes: 0 additions & 144 deletions
144
src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord.html
This file was deleted.
Oops, something went wrong.