32 Commits

Author SHA1 Message Date
7a78b8e172 fix: change module name corresponding to version 2025-09-25 19:15:20 +02:00
f231ae7e4a fix: oauth third party authentication with case insensitive email (#2196)
* feat: replace std slices

* feat: go mod tidy

* fix #2193: lowercase email

---------

Co-authored-by: franklin <kevin@franklinkim.de>
2025-07-24 14:08:40 +02:00
c40897ac09 feat: always persist sessions server-side, config adjustments (#1997)
* feat: always persist sessions server-side, config adjustments
2024-12-20 09:52:52 +01:00
9dbc62524a feat: Server side sessions (#1673)
* feat: add server side sessions

* feat: add lastUsed & admin endpoint

* feat: add session list to elements

* fix: fix public session endpoint

* chore: only store session info when enabled

* build: update go mod

* feat: add translations

* test: fix tests

* feat: change path

* feat: return userID on session validation endpoint

* feat: move all session endpoints to public router

* fix: add missing translation

* fix: add missing structs

* chore: align session persister with other persisters

* fix: use correct translation label

* chore: add db validator to session model

* feat: create server side session from cmd

* fix: fix review findings
2024-10-15 11:36:32 +02:00
a7e4c67353 feat(admin-api): get users by multiple ids 2024-10-01 12:02:44 +02:00
af5b37bb15 test: fix test 2024-08-26 15:24:41 +02:00
402e8ace72 test: fix tests 2024-08-26 15:24:41 +02:00
8ab246dc12 feat(jwt): add email claim to session JWT (#1404)
* add email claim which contains email address, is_verified and is_primary values
* cleanup some unused stuff

Closes: #1388

Co-authored-by: Stefan Jacobi <stefan.jacobi@adesso.de>
2024-03-25 15:25:02 +01:00
0b6c5bef76 Merge branch 'main' into feat/692-webhooks 2024-02-12 10:04:28 +01:00
fc55df9a8b fix(tests): fix missing constructor extension for aaguid map
Closes: #1027
2024-01-29 09:43:21 +01:00
3cafb66754 feat(webhooks): add tests and fix review issues
* add tests for webhooks
* improve error handling when context does not contain webhook manager
* add logging to worker and fix nesting error overwrite
* remove enable and disable methods in favor for update method
* move data in jwt from subject claim to custom `data` claim
* add event in jwt to custom `evt` claim
* change webhook trigger to only fire once per hook (was once per subscribed event in hook before)

Closes #692
2024-01-17 14:19:10 +01:00
fe034c1fcc feat: add configuration to disable user registration 2023-08-07 17:43:15 +02:00
7ae10a4c4d fix: don't set cookie when jwt is set in header 2023-07-26 11:45:11 +02:00
086333d7f3 refactor: speed up tests, maybe? 2023-06-19 14:57:16 +02:00
b59709d369 refactor: use echo.HTTPError instead of redundant own type. This way the prometheus mw shoul register the correct error codes. 2023-06-19 14:48:45 +02:00
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