Skip to content
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

PA-22319 - Make go-saml handle signatures on response XML (Georgia Pacific) #3

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

alexvalenzuela
Copy link

Created unit tests and add additional validation for signature on

  • response
  • assertion
  • encryptedassertion

@alexvalenzuela alexvalenzuela self-assigned this Jan 10, 2020
@sheac
Copy link

sheac commented Jan 10, 2020

@alexvalenzuelac I'm going to remove @sagard and I as reviewers until this is ready for review.

@sheac sheac removed request for sagard and sheac January 10, 2020 18:30
@@ -9,9 +9,9 @@ import (
)

const (
xmlResponseID = "urn:oasis:names:tc:SAML:2.0:protocol:Response"
Copy link
Author

Choose a reason for hiding this comment

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

this was moved by golangci-lint

@@ -134,3 +134,11 @@ func Decrypt(xml string, privateKeyPath string) ([]byte, error) {
func deleteTempFile(filename string) {
_ = os.Remove(filename)
}

func LoadXml(certPath string) (string, error) {
Copy link
Author

Choose a reason for hiding this comment

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

Let's keep this function in case if we have a Request/Response and we need to test/validate somethig with it

@alexvalenzuela alexvalenzuela marked this pull request as ready for review January 15, 2020 23:51
…ure on response, assertion and encryptedassertion
@alexvalenzuela alexvalenzuela force-pushed the PA-22319-HandleResponseAssertionSignature branch from 3342a0c to 8de6d72 Compare January 16, 2020 01:03
Copy link

@sheac sheac left a comment

Choose a reason for hiding this comment

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

Thanks for removing that cert, Alex!

@alexvalenzuela alexvalenzuela merged commit b86f185 into master Jan 16, 2020
@alexvalenzuela alexvalenzuela deleted the PA-22319-HandleResponseAssertionSignature branch January 16, 2020 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants