Commit Graph

12 Commits

Author SHA1 Message Date
Jörn Friedrich Dreyer
fad94d2038 bump mockery, add test stub for oidc_auth.go, align mock generation (#8321)
* bump mockery, add test stub for oidc_auth.go

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* use .mockery.yaml for all mocks

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* drop legacy go:generate mockery

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* align mock placement

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

---------

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-02-01 10:07:44 +01:00
Ralf Haferkamp
6dac1285f1 Fix GoCloak interface defintion for 13.8.0 2023-08-30 09:32:48 +02:00
Daniël Franke
a52ebd1f79 Make getUserByParams private. 2023-04-19 10:46:50 +02:00
Daniël Franke
81491efdc7 Remove GetUserByEmail method. 2023-04-19 10:19:07 +02:00
Daniël Franke
30edab9f69 Search users by username instead of by email
As some setups don't have email addresses setup or reuse email
addresses, the keycloak search has to be done by username as that
is guaranteed to always be unique and defined.

This PR changes that.
2023-04-18 11:43:13 +02:00
Michael Barz
3ed6786185 add sessions to report 2023-04-17 14:37:06 +02:00
Daniël Franke
d81065c1b6 Adds JSON tags to PII report.
This will make the JSON export look a bit prettier.
2023-04-14 15:09:54 +02:00
Daniël Franke
3ec5c0f6ed Don't check for attributes if no attributes set.
If no attributes are set, the attributes property is nil. This
causes a panic if keycloak has no custom attributes.
This patch checks for nil before accessing the attributes.
2023-04-14 15:09:54 +02:00
jkoberg
c9d0e876f7 use mail instead id to get user
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-04-14 15:09:54 +02:00
Daniël Franke
a0686c4f47 Fix feedback from @kobergj 2023-03-30 12:41:57 +02:00
Daniël Franke
bc9ba63b06 Fix tests for invitations service. 2023-03-30 11:12:00 +02:00
Daniël Franke
5793970e5d Add keycloak package.
This PR adds the keycloak package, which contains the following:

* More genericised functions for the invitations backend.
* User query functions.
* PII query functions.
2023-03-29 13:37:03 +02:00