Skip to content

Commit

Permalink
feat(oxtrust): added support for sp logout return url
Browse files Browse the repository at this point in the history
Signed-off-by: Rolain Djeumen <[email protected]>
  • Loading branch information
uprightech committed Apr 15, 2024
1 parent 7408670 commit ad2068f
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ public class GluuSAMLTrustRelationship extends InumEntry implements Serializable
@AttributeName(name = "oxAuthPostLogoutRedirectURI")
private String spLogoutURL;

@Pattern(regexp = "^$|(^(https?|http)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|])", message = "Please enter a valid url, including protocol (http/https)")
@AttributeName(name="spLogoutRedirectUrl")
private String spLogoutRedirectUrl;

@AttributeName(name = "gluuValidationLog")
private List<String> validationLog;

Expand Down Expand Up @@ -367,6 +371,17 @@ public void setSpLogoutURL(String spLogoutURL) {
this.spLogoutURL = spLogoutURL;
}

public String getSpLogoutRedirectUrl() {


return spLogoutRedirectUrl;
}

public void setSpLogoutRedirectUrl(String spLogoutRedirectUrl) {

this.spLogoutRedirectUrl = spLogoutRedirectUrl;
}

public String getSpMetaDataFN() {
return spMetaDataFN;
}
Expand Down
1 change: 1 addition & 0 deletions server/src/main/resources/oxtrust.properties
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ trustmanager.entityID = Entity ID
trustmanager.spMetadataFile = Sp Metadata File
trustmanager.spMetadataURL = Sp Metadata URL
trustmanager.spLogoutURL = SP Logout URL (optional)
trustmanager.spLogoutRedirectUrl= SP Logout Redirect URL (optional)
trustmanager.configureRelyingParty = Configure Relying Party
trustmanager.enableInCommon = Enable InCommon R&amp;S
trustmanager.released = Released
Expand Down
1 change: 1 addition & 0 deletions server/src/main/resources/oxtrust_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ trustmanager.entityID = Entity ID
trustmanager.spMetadataFile = Sp Metadata File
trustmanager.spMetadataURL = Sp Metadata URL
trustmanager.spLogoutURL = SP Logout URL (optional)
trustmanager.spLogoutRedirectUrl= SP Logout Redirect URL (optional)
trustmanager.configureRelyingParty = Configure Relying Party
trustmanager.enableInCommon = Enable InCommon R&amp;S
trustmanager.released = Released
Expand Down
1 change: 1 addition & 0 deletions server/src/main/resources/oxtrust_fr.properties
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ trustmanager.entityID = Entity ID
trustmanager.spMetadataFile = Sp Metadata File
trustmanager.spMetadataURL = Sp Metadata URL
trustmanager.spLogoutURL = SP Logout URL (optional)
trustmanager.spLogoutRedirectUrl= SP Logout Redirect URL (optional)
trustmanager.configureRelyingParty = Configurer un Relying Party
trustmanager.enableInCommon = Activé InCommon R&amp;S
trustmanager.released = Libéré
Expand Down
1 change: 1 addition & 0 deletions server/src/main/resources/oxtrust_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ trustmanager.entityID = Entity ID
trustmanager.spMetadataFile = Sp Metadata File
trustmanager.spMetadataURL = Sp Metadata URL
trustmanager.spLogoutURL = SP Logout URL (optional)
trustmanager.spLogoutRedirectUrl= SP Logout Redirect URL (optional)
trustmanager.configureRelyingParty = Configure Relying Party
trustmanager.enableInCommon = Enable InCommon R&amp;S
trustmanager.released = Released
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,14 @@ input[submit] {
id="spLogoutURLId" />
</ox:decorate>
</h:panelGroup>
<h:panelGroup id="spSingleLogoutRedirectUrl">
<ox:decorate id="LogoutRedirectUrl"
label="#{msgs['trustmanager.spLogoutRedirectUrl']}">
<h:inputText styleClass="form-control"
value="#{_trustRelationship.spLogoutRedirectUrl}" size="40"
id="spLogoutRedirectUrlId" />
</ox:decorate>
</h:panelGroup>
<ox:decorate id="configureSpecific"
label="#{msgs['trustmanager.configureRelyingParty']}">
<h:panelGrid columns="2" width="100%">
Expand Down

0 comments on commit ad2068f

Please sign in to comment.