21 Commits

Author SHA1 Message Date
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
eec7a473a5 feat: add third party integrations
add third party integrations
2023-02-23 13:05:05 +01:00
7c3ef455cd feat: add echo-contrib prometheus metrics. log: don't log /health and /metrics endpoints by default 2023-02-13 13:41:19 +01:00
b129bfc407 Merge branch 'main' into feat-add-user-admin-endpoints 2023-01-26 12:09:30 +01:00
b52f6db76b feat: add query params to search users 2023-01-26 11:27:44 +01:00
a8b8847e70 chore: update echo and switch the deprecated jwt middleware with echo-jwt/v4 2023-01-25 12:59:55 +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
61cd35becf Merge branch 'main' into add-audit-logs
# Conflicts:
#	backend/go.sum
2022-09-14 14:32:48 +02:00
6cc7c66c0e refactor: rename private api references 2022-09-13 14:00:42 +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
bd50dea37e fix: check min & max length of a password before login & set new password 2022-06-30 16:47:08 +02:00
4de446475f fix: fix module path 2022-06-21 12:36:11 +02:00
0947b2c38a Merge pull request #85 from teamhanko/fix-log-format
Fix log format
2022-06-20 10:05:09 +02:00
8b6a6074d2 fix: move the las " into the correct position 2022-06-17 13:59:04 +02:00
cf381d33b5 chore: delete redundant import alias 2022-06-17 13:57:21 +02:00
a308316bfa fix: put referer inside json map to produce valid json 2022-06-17 13:56:49 +02:00
d10bb7b33a feat: add hanko logger middleware to reduce redundancy 2022-06-17 13:56:14 +02:00
3e46664406 feat: improve error logging 2022-06-15 17:24:54 +02:00
80048acd8f refactor: move backend files to its own directory 2022-06-09 14:36:00 +02:00