Skip to content

Commit

Permalink
Merge pull request #2 from sebakerckhof/chore/update-es2017-branch
Browse files Browse the repository at this point in the history
Chore/update es2017 branch
  • Loading branch information
sebakerckhof committed Mar 14, 2019
2 parents 74e2c3d + 91a0285 commit 5d7b476
Show file tree
Hide file tree
Showing 4 changed files with 1,376 additions and 995 deletions.
2 changes: 1 addition & 1 deletion lib/errors.js
Expand Up @@ -42,7 +42,7 @@ class ProtocolError extends SamlError {}
/**
* Thrown when an IDP rejects an auth request
*/
class RejectionError extends Error {}
class RejectionError extends SamlError {}

export {
ValidationError,
Expand Down
2 changes: 1 addition & 1 deletion lib/response-construction.js
Expand Up @@ -217,7 +217,7 @@ function constructAssertion(sp, idp, inResponseTo, nameID, attributes, issueInst
},
{
'saml:AuthnStatement': {
'@AuthInstant': now.toISOString(),
'@AuthnInstant': now.toISOString(),
'@SessionNotOnOrAfter': later.toISOString(),
'@SessionIndex': '0',
'saml:AuthnContex': {
Expand Down

0 comments on commit 5d7b476

Please sign in to comment.