mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-31 23:02:34 +00:00

* feat: set cookie prefix and max age * cookie prefix on csrf cookie * fix: check user agent cookie in login * update oidc pkg * cleanup
21 lines
1013 B
Go
21 lines
1013 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, userAgentID string) (*model.AuthRequest, error)
|
|
AuthRequestByIDCheckLoggedIn(ctx context.Context, id, userAgentID string) (*model.AuthRequest, error)
|
|
AuthRequestByCode(ctx context.Context, code string) (*model.AuthRequest, error)
|
|
SaveAuthCode(ctx context.Context, id, code, userAgentID string) error
|
|
DeleteAuthRequest(ctx context.Context, id string) error
|
|
CheckLoginName(ctx context.Context, id, loginName, userAgentID string) error
|
|
SelectUser(ctx context.Context, id, userID, userAgentID string) error
|
|
VerifyPassword(ctx context.Context, id, userID, password, userAgentID string, info *model.BrowserInfo) error
|
|
VerifyMfaOTP(ctx context.Context, agentID, authRequestID, code, userAgentID string, info *model.BrowserInfo) error
|
|
}
|