Skip to content

Commit

Permalink
Merge 46a95d6 into 29c0557
Browse files Browse the repository at this point in the history
  • Loading branch information
GDXbsv committed Nov 22, 2017
2 parents 29c0557 + 46a95d6 commit 76f4c3b
Show file tree
Hide file tree
Showing 9 changed files with 586 additions and 608 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## v0.7.2

### Fix
- Add an ability to receive GET and POST requests.

## v0.7.1

### Fix
Expand Down
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,53 @@ $this->spMap["https://$freshdeskAccountName.freshdesk.com"] = new ServiceProvide
]
);
```
###### NewRelic example
```
$this->spMap["rpm.newrelic.com"] = new ServiceProvider(
[
/**
* Returns the contents of an X509 pem certificate, without the '-----BEGIN CERTIFICATE-----' and
* '-----END CERTIFICATE-----'.
*
* @return null|string
*/
'certificateData' => '',
/**
* Returns the full path to the (local) file that contains the X509 pem certificate.
*
* @return null|string
*/
"certificateFile" => "",
/**
* @return null|string
*/
"entityId" => "rpm.newrelic.com",
/**
* @return null|bool
*/
"assertionEncryptionEnabled" => false,
"assertionConsumerUrl" => "https://rpm.newrelic.com/accounts/$accountId/sso/saml/finalize",
"assertionConsumerBinding" => \SAML2_Const::BINDING_HTTP_POST,
"singleLogoutUrl" => "",
"singleLogoutBinding" => \SAML2_Const::BINDING_HTTP_REDIRECT,
"nameIdFormat" => 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
"nameIdValue" => function (UserInterface $user) {
/** @var User $user */
return $user->getEmailCanonical();
},
"NameQualifier" => "rpm.newrelic.com",
"wantSignedAuthnRequest" => false,
"wantSignedAuthnResponse" => false,
"wantSignedAssertions" => true,
"attributes" => [],
]
);
```

> Note: Keep in mind that this is a example, you may retrieve ServiceProviders from database
Expand Down

0 comments on commit 76f4c3b

Please sign in to comment.