Skip to content

#60: allow retrieving the generated request ids#61

Merged
pitbulk merged 3 commits intoSAML-Toolkits:v2.0.0from
miszobi:issue/60-allow-retrieving-request-ids
Aug 30, 2016
Merged

#60: allow retrieving the generated request ids#61
pitbulk merged 3 commits intoSAML-Toolkits:v2.0.0from
miszobi:issue/60-allow-retrieving-request-ids

Conversation

@miszobi
Copy link
Copy Markdown
Contributor

@miszobi miszobi commented Aug 30, 2016

  • Auth now has getLastLoginRequestId/getLastLogoutRequestId methods
    that allow retrieving the id of the generated AuthnRequest/LogoutRequest
    message to be used in response validation

- Auth now has getLastLoginRequestId/getLastLogoutRequestId methods
  that allow retrieving the id of the generated AuthnRequest/LogoutRequest
  message to be used in response validation
return UNIQUE_ID_PREFIX + uniqueIdSha1;
} catch (Exception e) {
LOGGER.error("Error executing generateUniqueID: " + e.getMessage(), e);
throw new RuntimeException("Error executing generateUniqueID: " + e.getMessage(), e);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This avoids returning a non-unique, empty id when generating the id fails.


/**
* The id of the last AuthnRequest generated
*/
Copy link
Copy Markdown
Contributor

@pitbulk pitbulk Aug 30, 2016

Choose a reason for hiding this comment

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

Do you think is necessary to use lastLoginRequestId lastLogoutRequestId rather than just _lastRequestID?

When you are using the auth class, you already control what methods do you call, so I think we can manage all in 1 unique parameter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll change this.

@pitbulk pitbulk merged commit 2c6b79c into SAML-Toolkits:v2.0.0 Aug 30, 2016
@pitbulk
Copy link
Copy Markdown
Contributor

pitbulk commented Aug 30, 2016

@miszobi thanks for the contribution.

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