2021-05-04 22:06:05 +00:00
|
|
|
package oidc
|
|
|
|
|
2022-10-20 02:16:36 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"github.com/ory/fosite"
|
|
|
|
)
|
2021-05-04 22:06:05 +00:00
|
|
|
|
|
|
|
var errPasswordsDoNotMatch = errors.New("the passwords don't match")
|
2022-10-20 02:16:36 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
ErrIssuerCouldNotDerive = fosite.ErrServerError.WithHint("Could not safely derive the issuer.")
|
|
|
|
ErrSubjectCouldNotLookup = fosite.ErrServerError.WithHint("Could not lookup user subject.")
|
|
|
|
ErrConsentCouldNotPerform = fosite.ErrServerError.WithHint("Could not perform consent.")
|
|
|
|
ErrConsentCouldNotGenerate = fosite.ErrServerError.WithHint("Could not generate the consent session.")
|
|
|
|
ErrConsentCouldNotSave = fosite.ErrServerError.WithHint("Could not save the consent session.")
|
|
|
|
ErrConsentCouldNotLookup = fosite.ErrServerError.WithHint("Failed to lookup the consent session.")
|
|
|
|
ErrConsentMalformedChallengeID = fosite.ErrServerError.WithHint("Malformed consent session challenge ID.")
|
|
|
|
)
|