mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-02-22 17:02:01 +00:00
* chore: add oidc base config * wip: authorize page * feat: implement basic oidc functionality * refactor: implement oidc following tinyauth patterns * feat: adapt frontend to oidc flow * fix: review comments * fix: oidc review comments * feat: refresh token grant type support * feat: cleanup expired oidc sessions * feat: frontend i18n * fix: fix typo in error screen * tests: add basic testing * fix: more review comments * refactor: rework oidc error messages * feat: openid discovery endpoint * feat: jwk endpoint * i18n: fix typo * fix: more rabbit nitpicks * fix: final review comments * i18n: authorize page error messages
48 lines
897 B
Go
48 lines
897 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.30.0
|
|
|
|
package repository
|
|
|
|
type OidcCode struct {
|
|
Sub string
|
|
CodeHash string
|
|
Scope string
|
|
RedirectURI string
|
|
ClientID string
|
|
ExpiresAt int64
|
|
}
|
|
|
|
type OidcToken struct {
|
|
Sub string
|
|
AccessTokenHash string
|
|
RefreshTokenHash string
|
|
Scope string
|
|
ClientID string
|
|
TokenExpiresAt int64
|
|
RefreshTokenExpiresAt int64
|
|
}
|
|
|
|
type OidcUserinfo struct {
|
|
Sub string
|
|
Name string
|
|
PreferredUsername string
|
|
Email string
|
|
Groups string
|
|
UpdatedAt int64
|
|
}
|
|
|
|
type Session struct {
|
|
UUID string
|
|
Username string
|
|
Email string
|
|
Name string
|
|
Provider string
|
|
TotpPending bool
|
|
OAuthGroups string
|
|
Expiry int64
|
|
CreatedAt int64
|
|
OAuthName string
|
|
OAuthSub string
|
|
}
|