29 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
b97f051009 Feat: display last used time of WebAuthn credentials (#600)
* display last used time of the webauthn credentials
2023-02-27 10:52:52 +01:00
eec7a473a5 feat: add third party integrations
add third party integrations
2023-02-23 13:05:05 +01:00
bcb406b025 Merge pull request #554 from teamhanko/feat-webauthn-backup-states
feat: store webauthn credential backup info
2023-02-07 10:19:23 +01:00
b9d5bf7a14 chore: rename order query parameter 2023-02-07 09:16:50 +01:00
bc24258952 feat: add order query for user list 2023-02-06 15:51:58 +01:00
d4aa9c86b9 feat: store webauthn credential backup info 2023-02-06 14:00:47 +01:00
112602eaef feat: remove unnecessary query param 2023-01-26 16:38:03 +01:00
b52f6db76b feat: add query params to search users 2023-01-26 11:27:44 +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
93ad9c4056 Merge pull request #490 from teamhanko/feat-audit-log-searchable
feat: add query parameter for searching audit logs
2023-01-17 11:21:46 +01:00
cdee91d7da feat: add query parameter for searching audit logs 2023-01-12 17:28:09 +01:00
a7ce53ed26 feat: add database url config variable 2023-01-09 17:10:51 +01:00
a6976dcc32 feat: add total count & link header for pagination 2022-11-17 11:48:58 +01:00
c20d9b5232 fix: check wrapped error for sql.ErrNoRows
Check if the error returned by pop contains a wrapped sql.ErrNoRows error (fixes #334)
2022-10-27 10:22:58 +02:00
61cd35becf Merge branch 'main' into add-audit-logs
# Conflicts:
#	backend/go.sum
2022-09-14 14:32:48 +02:00
c01be2d965 chore: use pointer instead of dedicated sql nulls package 2022-09-14 14:17:34 +02:00
da1a989aeb chore(audit_logs): use null types for nullable db columns 2022-09-13 17:08:20 +02:00
4d1b7780dd chore: add "omitempty" tag to some audit log fields 2022-09-12 12:26:32 +02:00
3748e68b01 Improve DB migration for audit logs
Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>
2022-09-12 12:21:33 +02:00
d71c0aa42a chore: rename some audit log types 2022-09-12 11:46:52 +02:00
eec0465d9d fix(jwk): remove conflicting order by clause when retriving last jwt from db
also adjusts secret keys config documentation
2022-08-30 12:57:47 +02:00
be56fa2ab9 fix: do not serialize credential transports to json 2022-08-24 17:14:39 +02:00
2acf2ff2c3 feat: add start and end time query for audit logs 2022-08-19 11:34:41 +02:00
f02bccb685 feat: add audit logs 2022-08-18 16:53:34 +02:00
de2ad1a7fd Feat handle allowed credentials and transports (#131)
* feat(backend): handle allowed credentials and transports 
* feat(hanko-js): conditionally trigger webauthn on email login
2022-07-19 11:51:17 +02:00
4de446475f fix: fix module path 2022-06-21 12:36:11 +02:00
7c2c196551 fix: fix database column type to store longer webauthn public keys 2022-06-14 14:10:50 +02:00
80048acd8f refactor: move backend files to its own directory 2022-06-09 14:36:00 +02:00