-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from healthify/PP-696/encrypted-assertion-v2
Introduce option for encrypting SAML assertions
- Loading branch information
Showing
8 changed files
with
138 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ end | |
|
||
### Generating a SAML Response | ||
|
||
The gem provides a `SamlResponse` class used to generate a custom signed unencrypted XML SAML response. The SAML response is currently generated by the `ruby-saml-idp` gem and that functionality will be replaced with this class in a later update. | ||
The gem provides a `SamlResponse` class used to generate a custom signed XML SAML response with an assertion that can be encrypted by setting `encryption_enabled` to `true`. | ||
|
||
**Usage** | ||
|
||
|
@@ -109,7 +109,6 @@ saml_response = FakeIdp::SamlResponse.new( | |
saml_acs_url: "http://localhost.dev:3000/auth/saml/devidp/callback", | ||
saml_request_id: "_#{SecureRandom.uuid}", | ||
name_id: "[email protected]", | ||
audience_uri: "http://localhost.dev:3000", | ||
issuer_uri: "http://publichost.dev:3000", | ||
algorithm_name: :sha256, | ||
certificate: "YOUR IDP CERTIFICATE HERE", | ||
|
@@ -124,8 +123,6 @@ saml_response = FakeIdp::SamlResponse.new( | |
}, | ||
) | ||
|
||
# Returns a signed unencrypted XML SAML response document | ||
# Returns a signed XML SAML response document | ||
saml_response.build | ||
``` | ||
|
||
**Note**: Encrypted assertions will be supported in a future update. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.