14 lines
759 B
Plaintext
14 lines
759 B
Plaintext
-- SPDX-FileCopyrightText: 2024 Sarah Vaupel <sarah.vaupel@uniworx.de>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-- TODO: define AuthenticationSource with json instances to store unique source identifiers per protocol
|
|
-- | User authentication data fetched from external user sources
|
|
ExternalAuth
|
|
user UserId
|
|
source AuthSourceIdent -- Identifier of the external source in the config
|
|
data Value "default='{}'::jsonb" -- Raw user data from external source
|
|
lastSync UTCTime -- When was the corresponding User entry last synced with this external source? -- TODO rethink
|
|
UniqueExternalAuth user source -- At most one entry of this user per source
|
|
deriving Show Eq Ord Generic
|