mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-16 04:48:04 +00:00
1c59d18fee
* add csrf * caching * caching * caching * caching * security headers * csp and security headers * error handler csp * select user with display name * csp * user selection styling * username to loginname * regenerate grpc * regenerate * change to login name
21 lines
929 B
Go
21 lines
929 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/caos/zitadel/internal/auth_request/model"
|
|
)
|
|
|
|
type AuthRequestRepository interface {
|
|
CreateAuthRequest(ctx context.Context, request *model.AuthRequest) (*model.AuthRequest, error)
|
|
AuthRequestByID(ctx context.Context, id string) (*model.AuthRequest, error)
|
|
AuthRequestByIDCheckLoggedIn(ctx context.Context, id string) (*model.AuthRequest, error)
|
|
AuthRequestByCode(ctx context.Context, code string) (*model.AuthRequest, error)
|
|
SaveAuthCode(ctx context.Context, id, code string) error
|
|
DeleteAuthRequest(ctx context.Context, id string) error
|
|
CheckLoginName(ctx context.Context, id, loginName string) error
|
|
SelectUser(ctx context.Context, id, userID string) error
|
|
VerifyPassword(ctx context.Context, id, userID, password string, info *model.BrowserInfo) error
|
|
VerifyMfaOTP(ctx context.Context, agentID, authRequestID string, code string, info *model.BrowserInfo) error
|
|
}
|