feat: oauth + authentik support (#372)

This commit is contained in:
diced
2023-07-21 11:47:46 -07:00
parent 485a1ae2e1
commit 8b74b0b195
20 changed files with 746 additions and 40 deletions

View File

@@ -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 {