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
// if the response is XML: | |
$response = new \Symfony\Component\HttpFoundation\Response(); | |
$response->setContent($xml); | |
return $response; | |
// if the response is a twig template: | |
$template = new \SimpleSAML\XHTML\Template('whatever.twig'); | |
$template->data = ['foo' => 'bar']; | |
return $template; |
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
<?php | |
include("vendor/autoload.php"); | |
// JSON-encode the Authenticator secret | |
$plaintext = array("secret" => "<AUTHENTICATOR_SECRET"); | |
// initialize JWE object | |
$jwe = new JOSE_JWE(json_encode($plaintext)); | |
// encrypt with Feide's key and proper algorithms |
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
### Keybase proof | |
I hereby claim: | |
* I am jaimeperez on github. | |
* I am jaimeperez (https://keybase.io/jaimeperez) on keybase. | |
* I have a public key whose fingerprint is 9A08 EA20 E062 70B4 616B 43E3 562A FE3A 6293 62C2 | |
To claim this, I am signing this object: |