Browse Source
Merge pull request #1 from hkeward/configure-prompt
Allow prompt to be configurable
pull/2/head
0.1.1
Hiroyuki Wada
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
24 additions and
4 deletions
-
ear/pom.xml
-
ejb/pom.xml
-
ejb/src/main/java/org/keycloak/social/discord/DiscordIdentityProviderConfig.java
-
ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord.html
-
pom.xml
|
|
@ -3,7 +3,7 @@ |
|
|
|
<parent> |
|
|
|
<groupId>org.keycloak.extensions</groupId> |
|
|
|
<artifactId>keycloak-discord-parent</artifactId> |
|
|
|
<version>0.1.0</version> |
|
|
|
<version>0.1.1</version> |
|
|
|
</parent> |
|
|
|
|
|
|
|
<name>Keycloak Discord EAR</name> |
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
<parent> |
|
|
|
<groupId>org.keycloak.extensions</groupId> |
|
|
|
<artifactId>keycloak-discord-parent</artifactId> |
|
|
|
<version>0.1.0</version> |
|
|
|
<version>0.1.1</version> |
|
|
|
</parent> |
|
|
|
|
|
|
|
<name>Keycloak Discord EJB</name> |
|
|
|
|
|
@ -54,4 +54,8 @@ public class DiscordIdentityProviderConfig extends OAuth2IdentityProviderConfig |
|
|
|
} |
|
|
|
return Collections.emptySet(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void setPrompt(String prompt) { |
|
|
|
getConfig().put("prompt", prompt); |
|
|
|
} |
|
|
|
} |
|
|
@ -114,6 +114,22 @@ |
|
|
|
</div> |
|
|
|
<kc-tooltip>{{:: 'post-broker-login-flow.tooltip' | translate}}</kc-tooltip> |
|
|
|
</div> |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-md-2 control-label" for="prompt">{{:: 'prompt' | translate}}</label> |
|
|
|
<div class="col-md-6"> |
|
|
|
<div> |
|
|
|
<select class="form-control" id="prompt" ng-model="identityProvider.config.prompt"> |
|
|
|
<option value="">{{:: 'unspecified.option' | translate}}</option> |
|
|
|
<option value="none">{{:: 'none.option' | translate}}</option> |
|
|
|
<option value="consent">{{:: 'consent.option' | translate}}</option> |
|
|
|
<option value="login">{{:: 'login.option' | translate}}</option> |
|
|
|
<option value="select_account">{{:: 'select-account.option' | translate}}</option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<kc-tooltip>{{:: 'prompt.tooltip' | translate}}</kc-tooltip> |
|
|
|
</div> |
|
|
|
|
|
|
|
</fieldset> |
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
@ -7,7 +7,7 @@ |
|
|
|
|
|
|
|
<groupId>org.keycloak.extensions</groupId> |
|
|
|
<artifactId>keycloak-discord-parent</artifactId> |
|
|
|
<version>0.1.0</version> |
|
|
|
<version>0.1.1</version> |
|
|
|
<packaging>pom</packaging> |
|
|
|
|
|
|
|
<properties> |
|
|
|