Commit Graph

37 Commits

Author SHA1 Message Date
Deepak Prabhakara
929fac62dd
check for missing signature and throw appropriate error (#80) 2022-10-12 19:11:50 +01:00
Deepak Prabhakara
5134718b2c
saml id cannot start with a number - http://books.xmlschemata.org/relaxng/ch19-77215.html (#77) 2022-10-04 21:12:01 +01:00
Deepak Prabhakara
2c428759ea
Update deps (#24)
* updated deps

* updated saml20
2022-07-26 22:48:29 +01:00
Deepak Prabhakara
331c3cf318
Switch to saml20 (#21)
* Use boxyhq/saml20

* use sign from saml20

* cleaned up GetKeyInfo

* cleaned up getPublicKeyPemFromCertificate

* cleaned up node-forge

* use hasValidSignature from saml20

* cleanup and update saml20 to the beta version

* throw an error if signature is not valid

* updated saml20
2022-04-26 18:02:12 +01:00
Kiran K
fdaa190df4
Add Github actions (#15)
* Add Github actions

* Fix the docker build issue

* Remove the duplicate Github action

* only need runtime env vars during build

* ENV NEXT_TELEMETRY_DISABLED is a runtime env var

* Add missing keys to package.json

* Use the npm version as tag

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2022-03-10 17:20:33 +00:00
Deepak Prabhakara
b024b30f6e type fix 2022-03-02 21:37:16 +00:00
Kiran K
9bc55ea7f0
Validate AuthnRequest signature (#11)
* Validate AuthnRequest signature skelton

* Code refactor: Move the base64decode to common method

* wip

* Add signature validation

* Read the keys from config

* Lock dep version

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2022-03-02 21:06:04 +00:00
Aswin V
4fdf5e9674 Get public/private key from env 2022-03-01 00:42:21 +05:30
Kiran K
88a14aeeb7 Build the metadata using the xmlbuilder (#3) 2022-02-28 17:39:52 +00:00
Deepak Prabhakara
95ce328cbf build fix 2022-02-25 20:12:28 +00:00
Aswin V
cc68eca2f8 Handle POST binding 2022-02-24 22:06:25 +05:30
Deepak Prabhakara
4ec1bc044e Tweaks (#1)
* cleanup and pin versions

* tweaked metadata markers, formatted metadata, cleaned up .env.example file
2022-02-23 23:30:02 +00:00
Kiran
9b86ea8b2e Code cleanup 2022-02-23 19:18:20 +05:30
Aswin V
faa3946353 Merge branch 'main' of github.com:boxyhq/mock-saml 2022-02-23 18:06:05 +05:30
Aswin V
e68b437a85 use saml req id 2022-02-23 18:05:58 +05:30
Kiran
db848e1aa1 Removed the ds 2022-02-23 18:04:57 +05:30
Kiran
679cd0ee58 Update the SAML Response 2022-02-23 13:50:49 +05:30
Kiran
cb8b857008 Applied prettier 2022-02-22 11:44:12 +05:30
Kiran
364cd92ffb Add response signing - wip 2022-02-22 11:32:03 +05:30
Aswin V
4022901ea9 Add prettier config and format files 2022-02-22 11:06:06 +05:30
Aswin V
e25bb86413 parse SAML req 2022-02-22 11:05:42 +05:30
Kiran
4490d2cb3b wip 2022-02-21 22:32:03 +05:30
Kiran
c7fc57cc7e Add key pair 2022-02-21 21:53:43 +05:30
Kiran
631a3b6884 Fix the signing -wip 2022-02-21 21:37:39 +05:30
Kiran
b53c3b41b7 Fix the signing -wip 2022-02-21 21:06:25 +05:30
Kiran
aa76970fe7 cleanup util 2022-02-21 20:01:47 +05:30
Kiran
21fa8eb87a wip 2022-02-21 18:46:04 +05:30
Kiran
1f09de0c88 wip 2022-02-21 18:45:17 +05:30
Kiran
0f1fb9258d Add attrs to SAMLResponse 2022-02-21 12:23:27 +05:30
Kiran
eeeef765fc Create saml response 2022-02-21 11:22:31 +05:30
Kiran
aaa007f005 Create saml response 2022-02-21 11:22:12 +05:30
Kiran
f0820e3c92 Add method to create SAMLResponse XML 2022-02-18 12:51:40 +05:30
Kiran
92e9c5489d Add the saml response form 2022-02-18 12:04:18 +05:30
Kiran
a8444c434a Fix 2022-02-18 11:21:30 +05:30
Kiran
b9e9b53941 Cleanup 2022-02-18 09:37:27 +05:30
Kiran
c3c09856bc Merged 2022-02-17 21:43:25 +05:30
Kiran
141a920a50 wip 2022-01-15 01:25:28 +05:30