17 Commits

Author SHA1 Message Date
e788c4433d fix: tests 2023-05-26 13:40:24 +02:00
3e2ae1453c test: fix logout test 2023-04-03 09:49:14 +02:00
62c0595858 test: change user handler tests to use router 2023-03-31 12:09:06 +02:00
afdfa4ad7d test: start integration improvement 2023-03-31 09:00:16 +02:00
e7a5c2df27 Feat: Add logout method to sdk (#566)
* Add endpoint to invalidate HTTP-Only cookie from the backend

* Add methods to the UserClient SDK for logout

* Remove session token fetch and add unit test for logout

* Update public router to use JWT middleware

* Add logout button to frontend. Route back to login page once logout is successful.

* Add a logout failur event

* Update logout logic in SDK

* Remove unneeded endpoint from main.go

* Update logoutlink reference

* Fix request path; undo change in package order

* Update common.css to incldue hanko-logout

* feat(fronend-sdk): remove cookie during cross-domain operations

* fix(frontend-sdk): No unauthorized error during logout, when the user is already logged out

* feat(backend): Create an audit log entry when the user logs off

* chore(frontend-sdk): re-generate jsdoc

* fix: Adjust logout response codes and the corresponding frontend sdk error handling

* chore(frontend-sdk): re-generate jsdoc

* feat: add logout endpoint specification to the docs

* Fix broken unit test

* Remove logout button from elements

* Add event listener on frontend to call the logout method from SDK

* Rollback changes to SecuredContent on e2e tests

* Update logout test on user

* Update quickstart/public/assets/css/common.css

Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>

---------

Co-authored-by: Björn Müller <bjoern.mueller@hanko.io>
Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>
2023-03-03 10:48:33 +01:00
e8a91d9f4c test: improve user handler test 2023-02-16 11:49:25 +01:00
ca62cf421f feat: introduce hanko profile element and related api changes (#495)
* feat: introduce hanko profile element and related api changes
2023-01-25 10:55:23 +01:00
b73067b07e chore: rename audit log client 2022-09-27 09:51:13 +02:00
f02bccb685 feat: add audit logs 2022-08-18 16:53:34 +02:00
067ca8d755 feat: handle auth-token header and create cross domain cookies (#135)
feat: handle auth-token header and create cross domain cookies
2022-07-28 14:35:44 +02:00
df4cf27d20 Merge pull request #104 from teamhanko/make-email-case-insensitive
use always lowercase emails
2022-07-01 12:03:28 +02:00
ca71d641bf fix: use always lowercase emails 2022-06-29 17:33:29 +02:00
722647254d test: fix test 2022-06-27 15:13:07 +02:00
4de446475f fix: fix module path 2022-06-21 12:36:11 +02:00
3e46664406 feat: improve error logging 2022-06-15 17:24:54 +02:00
1fc1dbcb35 tests: fix tests 2022-06-13 16:24:28 +02:00
80048acd8f refactor: move backend files to its own directory 2022-06-09 14:36:00 +02:00