mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 15:50:11 -08:00
feat: oauth + authentik support (#372)
This commit is contained in:
@@ -49,16 +49,15 @@ model OAuthProvider {
|
||||
|
||||
userId String
|
||||
provider OAuthProviderType
|
||||
|
||||
username String
|
||||
accessToken String
|
||||
refreshToken String
|
||||
expiresIn Int
|
||||
scope String
|
||||
tokenType String
|
||||
profile Json
|
||||
refreshToken String?
|
||||
oauthId String?
|
||||
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
|
||||
@@unique([userId, provider])
|
||||
@@unique([provider, oauthId])
|
||||
}
|
||||
|
||||
enum OAuthProviderType {
|
||||
|
||||
Reference in New Issue
Block a user