forked from devlauer/jenkins-keycloak-plugin
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from mrmateo/bugfix/JENKINS-71337
[JENKINS-71337] Fix configuration not being saved.
- Loading branch information
Showing
4 changed files
with
39 additions
and
79 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
29 changes: 12 additions & 17 deletions
29
src/main/resources/org/jenkinsci/plugins/KeycloakSecurityRealm/config.jelly
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,21 +1,16 @@ | ||
<!-- | ||
--> | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> | ||
<f:section title="Global Keycloak Settings" name="keycloak" > | ||
<f:entry title="Keycloak JSON" field="keycloakJson" help="/plugin/keycloak/help/auth/keycloak-json-help.html"> | ||
<f:textarea /> | ||
<f:entry title="Keycloak JSON" field="keycloakJson" help="/plugin/keycloak/help/auth/keycloak-json-help.html"> | ||
<f:textarea /> | ||
</f:entry> | ||
|
||
<f:optionalBlock title="Validate Token on each request" field="keycloakValidate" help="/plugin/keycloak/help/auth/keycloak-validate-help.html" inline="true"> | ||
<f:entry title="Keep login session open until access token times out?" field="keycloakRespectAccessTokenTimeout" help="/plugin/keycloak/help/auth/keycloak-respectAccessTokenTimeout-help.html"> | ||
<f:checkbox/> | ||
</f:entry> | ||
|
||
<f:optionalBlock title="Validate Token on each request" field="keycloakValidate" help="/plugin/keycloak/help/auth/keycloak-validate-help.html"> | ||
<f:entry title="Keep login session open until access token times out?" field="keycloakRespectAccessTokenTimeout" help="/plugin/keycloak/help/auth/keycloak-respectAccessTokenTimeout-help.html"> | ||
<f:checkbox/> | ||
</f:entry> | ||
</f:optionalBlock> | ||
|
||
<f:entry title="Use default IDP" field="keycloakIdp" help="/plugin/keycloak/help/auth/keycloak-idp-help.html"> | ||
<f:textbox/> | ||
</f:entry> | ||
</f:section> | ||
</f:optionalBlock> | ||
|
||
<f:entry title="Use default IDP" field="keycloakIdp" help="/plugin/keycloak/help/auth/keycloak-idp-help.html"> | ||
<f:textbox/> | ||
</f:entry> | ||
</j:jelly> |
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
2 changes: 2 additions & 0 deletions
2
src/test/resources/org/jenkinsci/plugins/KeycloakYamlExport.yaml
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,3 +1,5 @@ | ||
keycloakJson: "{\"realm\": \"master\",\"auth-server-url\": \"https://keycloak.example.com/auth/\"\ | ||
,\"ssl-required\": \"external\",\"resource\": \"ci-example-com\",\"credentials\"\ | ||
: {\"secret\": \"secret-secret-secret\"},\"confidential-port\": 0}" | ||
keycloakRespectAccessTokenTimeout: true | ||
keycloakValidate: false |