Closed rafaeltab closed 2 years ago
erDiagram User }o--|{ Role : "is assigned" Role }|--o{ Scope : "has" User }|--o{ ExternalConnection : "has" ExternalConnection }o--|| ExternalApplication : "with" ExternalConnectionRequest }o--|| ExternalApplication : "for" Client ||--o{ RedirectUri : "with" User { uuid userId string email string hash } Client { uuid clientId string name } RedirectUri { uuid redirectUriId string b64Uri } Role { uuid roleId string name } Scope { uuid scopeId string name } ExternalApplication { string b64AuthenticationOptions string name } ExternalConnection { string accessToken string refreshToken DateTime accessTokenExpire DateTime refreshTokenExpire } ExternalConnectionRequest { string redirectUri string authorizationCode }
Authentication database