-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for SAML 2.0 asynchronous (front-channel) binding for single logout #210
Conversation
…nnel-slo-v2 SAML Front-Channel Logout
Add SAML Front-Channel Logout UI.
…nnel-slo-v4 Apply Front-Channel Logout UI configurations
import java.util.List; | ||
import java.util.Set; | ||
|
||
public class Util { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO without releasing a major version, we cannot remove a public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API was removed as this component did not get packed in the product
if ((getTextValue(elem, SAMLSSOConstants.FileBasedSPConfig.FRONT_CHANNEL_LOGOUT)) != null) { | ||
spDO.setDoFrontChannelLogout(Boolean.valueOf(getTextValue(elem, SAMLSSOConstants.FileBasedSPConfig | ||
.FRONT_CHANNEL_LOGOUT))); | ||
if(spDO.isDoFrontChannelLogout()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 1149d97
"<input type='hidden' name='AuthenticatedIdPs' value='" | ||
+ Encode.forHtmlAttribute(authenticatedIdPs) + "'/>"); | ||
} | ||
PrintWriter out = resp.getWriter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without writing each and every line to response, it's better to build the whole response and write to output in a single go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 3bbc008
@@ -847,4 +849,4 @@ | |||
<http:address location="https://localhost:9443/services/IdentitySAMLSSOConfigService.IdentitySAMLSSOConfigServiceHttpsEndpoint/"/> | |||
</wsdl:port> | |||
</wsdl:service> | |||
</wsdl:definitions> | |||
</wsdl:definitions> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new line please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 1149d97
@@ -136,6 +137,42 @@ public static boolean isSingleLogoutEnabled(boolean isSpEdit, SAMLSSOServiceProv | |||
return false; | |||
} | |||
|
|||
/** | |||
* Check front-Channel logout enable and if not enable return false. | |||
* @param isSpEdit Operation on service provider, create or edit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a space after the description line, to make it clean to read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 1149d97
Proposed changes in this pull request
Fixes wso2/product-is#4038