Add simple cert.xml file
This commit is contained in:
parent
95db6f7ab6
commit
089ef6b2f3
2 changed files with 23 additions and 1 deletions
18
public/cert.xml
Normal file
18
public/cert.xml
Normal file
|
@ -0,0 +1,18 @@
|
|||
<trust:RequestSecurityTokenResponseCollection xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
|
||||
<trust:RequestSecurityTokenResponse Context="https://uonetplus.fake-log.com/Default/LoginEndpoint.aspx">
|
||||
<trust:RequestedSecurityToken>
|
||||
<saml:Assertion AssertionID="_12345678-1234-1234-1234-1234567890ab" IssueInstant="2017-10-18T22:00:29.006Z" Issuer="CUFSTokenService" MajorVersion="1" MinorVersion="1" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion">
|
||||
<saml:AttributeStatement>
|
||||
<saml:Attribute AttributeName="UserInstance" AttributeNamespace="http://schemas.fake-log.com/ws/identity/claims">
|
||||
<saml:AttributeValue>nonDefault</saml:AttributeValue>
|
||||
<saml:AttributeValue>Default</saml:AttributeValue>
|
||||
<saml:AttributeValue>incorrect value</saml:AttributeValue>
|
||||
<saml:AttributeValue>warszawa</saml:AttributeValue>
|
||||
<saml:AttributeValue>asdf</saml:AttributeValue>
|
||||
<saml:AttributeValue>asdfsdf</saml:AttributeValue>
|
||||
</saml:Attribute>
|
||||
</saml:AttributeStatement>
|
||||
</saml:Assertion>
|
||||
</trust:RequestedSecurityToken>
|
||||
</trust:RequestSecurityTokenResponse>
|
||||
</trust:RequestSecurityTokenResponseCollection>
|
|
@ -1,4 +1,5 @@
|
|||
var express = require('express');
|
||||
var fs = require('fs');
|
||||
var router = express.Router();
|
||||
|
||||
router.get("/", function(req, res) {
|
||||
|
@ -23,7 +24,10 @@ router.post("/Default/Account/LogOn", function(req, res) {
|
|||
});
|
||||
|
||||
router.get("/Default/FS/LS", function (req, res) {
|
||||
res.render("login-cert", { cert: "<xml>", uonetplusOpiekun: "http://uonetplus.fakelog.localhost:3000" });
|
||||
res.render("login-cert", {
|
||||
cert: fs.readFileSync("public/cert.xml", "utf8"),
|
||||
uonetplusOpiekun: "http://uonetplus.fakelog.localhost:3000"
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
|
Loading…
Reference in a new issue