Commit Graph

28 Commits

Author SHA1 Message Date
Deepak Prabhakara
0ad3b3bfac
moved parsing of saml request to saml20 lib (#486) 2024-02-04 13:35:59 +00:00
Deepak Prabhakara
7ad7ec0186
fixed namespace login (#473) 2024-01-21 01:01:09 +00:00
Deepak Prabhakara
6fae8857b1
Add a namespace page to get unique entity ids for multi tenant use (#472)
* allow a unique entity id per org

* updated metadata url to support org

* org specific login

* org -> namespace

* updated node and alpine

* spacing tweak
2024-01-20 23:20:37 +00:00
Deepak Prabhakara
d18cf70c47
bypass validation for GET request until we figure out how to exchange the public key with the SP (#159) 2023-03-24 23:01:42 +00:00
Deepak Prabhakara
9db5fed873
cleanup (#129) 2022-12-16 09:52:37 +00:00
Kiran K
c5ab7761d1
Download metadata url (#91)
* Bump eslint from 8.23.1 to 8.24.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.23.1 to 8.24.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.23.1...v8.24.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump next from 12.3.0 to 12.3.1

Bumps [next](https://github.com/vercel/next.js) from 12.3.0 to 12.3.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v12.3.0...v12.3.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add Download Metadata URL

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 17:38:56 +01:00
Deepak Prabhakara
929fac62dd
check for missing signature and throw appropriate error (#80) 2022-10-12 19:11:50 +01:00
Deepak Prabhakara
4acea7c223 updated to saml20 v1.0.1 2022-04-27 21:16:05 +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
Deepak Prabhakara
d1f6cba776 tweaked firstName and lastName 2022-03-02 23:50:03 +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
Kiran K
eb0a0fe518
Add example.org to the domain list so that users can test multiple domains (#12)
* Add the email domain dropdown

* Fix #5

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2022-03-02 21:02:13 +00:00
Aswin V
1e0dd8feea Remove await 2022-03-01 00:44:19 +05:30
Aswin V
19871ee647 Use email hash to generate id 2022-02-24 22:53:35 +05:30
Aswin V
cc68eca2f8 Handle POST binding 2022-02-24 22:06:25 +05:30
Kiran
9b86ea8b2e Code cleanup 2022-02-23 19:18:20 +05:30
Aswin V
e68b437a85 use saml req id 2022-02-23 18:05:58 +05:30
Aswin V
da494e066a Use 302 redirect 2022-02-22 15:50:13 +05:30
Aswin V
4f777fd08d Fix idpIdentityId 2022-02-22 15:50:01 +05:30
Aswin V
628e760b8b Validate email and build SAML response 2022-02-22 13:47:41 +05:30
Aswin V
6f9bab1969 Redirect to login after req parsing 2022-02-22 13:46:54 +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
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
aaa007f005 Create saml response 2022-02-21 11:22:12 +05:30
Kiran
b9e9b53941 Cleanup 2022-02-18 09:37:27 +05:30