Skip to content

add status for logout response#244

Closed
harunhonour wants to merge 1 commit intoSAML-Toolkits:masterfrom
harunhonour:add-status-logout-response
Closed

add status for logout response#244
harunhonour wants to merge 1 commit intoSAML-Toolkits:masterfrom
harunhonour:add-status-logout-response

Conversation

@harunhonour
Copy link
Copy Markdown

When returning Logout Response, there is no way to set the status. This PR adds the status field.

* InResponseTo attribute value to bet set at the Logout Response.
*/
public void build(String inResponseTo) {
public void build(String inResponseTo, String status) {
Copy link
Copy Markdown
Contributor

@pitbulk pitbulk Oct 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you leave the public void build(String inResponseTo) method as well?

public void build(String inResponseTo) {
    build(inResponseTo, Constants.STATUS_SUCCESS)
}

And then leave build() as it was

public void build() {
	build(null);
}

* InResponseTo attribute value to bet set at the Logout Response.
*/
public void build(String inResponseTo) {
public void build(String inResponseTo, String status) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename the status param to statusCode ?

@pitbulk
Copy link
Copy Markdown
Contributor

pitbulk commented Oct 23, 2019

I added some comments.

Also the PR lacks test coverage.

@pitbulk pitbulk closed this in e43459b Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants