Documentation
¶
Index ¶
- type AuthRequest
- func (a *AuthRequest) Done() bool
- func (a *AuthRequest) GetACR() string
- func (a *AuthRequest) GetAMR() []string
- func (a *AuthRequest) GetAudience() []string
- func (a *AuthRequest) GetAuthTime() time.Time
- func (a *AuthRequest) GetClientID() string
- func (a *AuthRequest) GetCodeChallenge() *oidc.CodeChallenge
- func (a *AuthRequest) GetID() string
- func (a *AuthRequest) GetNonce() string
- func (a *AuthRequest) GetRedirectURI() string
- func (a *AuthRequest) GetResponseMode() oidc.ResponseMode
- func (a *AuthRequest) GetResponseType() oidc.ResponseType
- func (a *AuthRequest) GetScopes() []string
- func (a *AuthRequest) GetState() string
- func (a *AuthRequest) GetSubject() string
- type CreateAuthRequestParams
- type CreateKeyParams
- type CreateRefreshTokenParams
- type CreateTokenParams
- type DBTX
- type Key
- type Queries
- func (q *Queries) CreateAuthRequest(ctx context.Context, arg CreateAuthRequestParams) (*AuthRequest, error)
- func (q *Queries) CreateKey(ctx context.Context, arg CreateKeyParams) (*Key, error)
- func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (*RefreshToken, error)
- func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) (*Token, error)
- func (q *Queries) DeleteAllAuthRequests(ctx context.Context) error
- func (q *Queries) DeleteAllKeys(ctx context.Context) error
- func (q *Queries) DeleteAllTokens(ctx context.Context) error
- func (q *Queries) GetAllKeys(ctx context.Context) ([]*Key, error)
- func (q *Queries) GetAuthRequestByAuthCode(ctx context.Context, authCode sql.NullString) (*AuthRequest, error)
- func (q *Queries) GetAuthRequestByID(ctx context.Context, id string) (*AuthRequest, error)
- func (q *Queries) GetKeyByID(ctx context.Context, id string) (*Key, error)
- func (q *Queries) GetKeysByUse(ctx context.Context, usage string) ([]*Key, error)
- func (q *Queries) GetRefreshTokenByID(ctx context.Context, id string) (*RefreshToken, error)
- func (q *Queries) GetTokenByID(ctx context.Context, id string) (*Token, error)
- func (q *Queries) UpdateAuthCode(ctx context.Context, arg UpdateAuthCodeParams) (int64, error)
- func (q *Queries) UpdateAuthRequestUser(ctx context.Context, arg UpdateAuthRequestUserParams) (int64, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RefreshToken
- func (r *RefreshToken) GetAMR() []string
- func (r *RefreshToken) GetAudience() []string
- func (r *RefreshToken) GetAuthTime() time.Time
- func (r *RefreshToken) GetClientID() string
- func (r *RefreshToken) GetScopes() []string
- func (r *RefreshToken) GetSubject() string
- func (r *RefreshToken) SetCurrentScopes(scopes []string)
- type Token
- type UpdateAuthCodeParams
- type UpdateAuthRequestUserParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type AuthRequest struct {
ID string
ApplicationID string
RedirectUri string
State string
Prompt string
LoginHint string
MaxAuthAgeSeconds int64
UserID string
Scopes string
ResponseType string
ResponseMode string
Nonce string
CodeChallenge string
CodeChallengeMethod string
Complete bool
CreatedAt int64
AuthenticatedAt int64
AuthCode sql.NullString
}
func (*AuthRequest) Done ¶
func (a *AuthRequest) Done() bool
func (*AuthRequest) GetACR ¶
func (a *AuthRequest) GetACR() string
func (*AuthRequest) GetAMR ¶
func (a *AuthRequest) GetAMR() []string
func (*AuthRequest) GetAudience ¶
func (a *AuthRequest) GetAudience() []string
func (*AuthRequest) GetAuthTime ¶
func (a *AuthRequest) GetAuthTime() time.Time
func (*AuthRequest) GetClientID ¶
func (a *AuthRequest) GetClientID() string
func (*AuthRequest) GetCodeChallenge ¶
func (a *AuthRequest) GetCodeChallenge() *oidc.CodeChallenge
func (*AuthRequest) GetID ¶
func (a *AuthRequest) GetID() string
func (*AuthRequest) GetNonce ¶
func (a *AuthRequest) GetNonce() string
func (*AuthRequest) GetRedirectURI ¶
func (a *AuthRequest) GetRedirectURI() string
func (*AuthRequest) GetResponseMode ¶
func (a *AuthRequest) GetResponseMode() oidc.ResponseMode
func (*AuthRequest) GetResponseType ¶
func (a *AuthRequest) GetResponseType() oidc.ResponseType
func (*AuthRequest) GetScopes ¶
func (a *AuthRequest) GetScopes() []string
func (*AuthRequest) GetState ¶
func (a *AuthRequest) GetState() string
func (*AuthRequest) GetSubject ¶
func (a *AuthRequest) GetSubject() string
type CreateAuthRequestParams ¶
type CreateAuthRequestParams struct {
ID string
ApplicationID string
RedirectUri string
State string
Prompt string
LoginHint string
MaxAuthAgeSeconds int64
UserID string
Scopes string
ResponseType string
ResponseMode string
CodeChallenge string
CodeChallengeMethod string
Nonce string
Complete bool
CreatedAt int64
AuthenticatedAt int64
}
type CreateKeyParams ¶
type CreateRefreshTokenParams ¶ added in v0.1.2
type CreateTokenParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAuthRequest ¶
func (q *Queries) CreateAuthRequest(ctx context.Context, arg CreateAuthRequestParams) (*AuthRequest, error)
func (*Queries) CreateRefreshToken ¶ added in v0.1.2
func (q *Queries) CreateRefreshToken(ctx context.Context, arg CreateRefreshTokenParams) (*RefreshToken, error)
func (*Queries) CreateToken ¶
func (*Queries) DeleteAllAuthRequests ¶
func (*Queries) GetAuthRequestByAuthCode ¶
func (q *Queries) GetAuthRequestByAuthCode(ctx context.Context, authCode sql.NullString) (*AuthRequest, error)
func (*Queries) GetAuthRequestByID ¶
func (*Queries) GetKeyByID ¶
func (*Queries) GetKeysByUse ¶
func (*Queries) GetRefreshTokenByID ¶ added in v0.1.2
func (*Queries) GetTokenByID ¶
func (*Queries) UpdateAuthCode ¶
func (*Queries) UpdateAuthRequestUser ¶
type RefreshToken ¶ added in v0.1.2
type RefreshToken struct {
ID string
AuthTime int64
Amr sql.NullString
Audience string
Subject string
ApplicationID string
Expiration int64
Scopes string
CreatedAt int64
}
func (*RefreshToken) GetAMR ¶ added in v0.1.2
func (r *RefreshToken) GetAMR() []string
func (*RefreshToken) GetAudience ¶ added in v0.1.2
func (r *RefreshToken) GetAudience() []string
func (*RefreshToken) GetAuthTime ¶ added in v0.1.2
func (r *RefreshToken) GetAuthTime() time.Time
func (*RefreshToken) GetClientID ¶ added in v0.1.2
func (r *RefreshToken) GetClientID() string
func (*RefreshToken) GetScopes ¶ added in v0.1.2
func (r *RefreshToken) GetScopes() []string
func (*RefreshToken) GetSubject ¶ added in v0.1.2
func (r *RefreshToken) GetSubject() string
func (*RefreshToken) SetCurrentScopes ¶ added in v0.1.2
func (r *RefreshToken) SetCurrentScopes(scopes []string)
type UpdateAuthCodeParams ¶
type UpdateAuthCodeParams struct {
AuthCode sql.NullString
ID string
}
Click to show internal directories.
Click to hide internal directories.