mas: added localpart_external_ids table

This commit is contained in:
Roman Isaev 2024-12-24 03:06:26 +00:00
parent e1dfe62b20
commit 150be588f5
No known key found for this signature in database
GPG key ID: 7BE2B6A6C89AEC7F
8 changed files with 242 additions and 0 deletions

View file

@ -471,6 +471,14 @@ type OpenIDTokenAttributes struct {
ExpiresAtMS int64
}
// LocalpartExternalID represents a connection between Matrix account and OpenID Connect provider
type LocalpartExternalID struct {
Localpart string
ExternalID string
AuthProvider string
CreatedTs int64
}
// UserInfo is for returning information about the user an OpenID token was issued for
type UserInfo struct {
Sub string // The Matrix user's ID who generated the token