13 lines
478 B
Go
13 lines
478 B
Go
package op
|
|
|
|
import "github.com/caos/oidc/pkg/oidc"
|
|
|
|
type Storage interface {
|
|
CreateAuthRequest(*oidc.AuthRequest) error
|
|
GetClientByClientID(string) (oidc.Client, error)
|
|
AuthRequestByID(string) (*oidc.AuthRequest, error)
|
|
AuthRequestByCode(oidc.Client, string, string) (*oidc.AuthRequest, error)
|
|
AuthorizeClientIDSecret(string, string) (oidc.Client, error)
|
|
AuthorizeClientIDCodeVerifier(string, string) (oidc.Client, error)
|
|
DeleteAuthRequestAndCode(string, string) error
|
|
}
|