Documentation ¶
Overview ¶
Package validation has functions for validating the correctness of api objects and explaining what is wrong with them when they aren't valid.
Index ¶
- Constants
- Variables
- func ValidateAccessToken(accessToken *oauthapi.OAuthAccessToken) field.ErrorList
- func ValidateAccessTokenUpdate(newToken, oldToken *oauthapi.OAuthAccessToken) field.ErrorList
- func ValidateAuthorizeToken(authorizeToken *oauthapi.OAuthAuthorizeToken) field.ErrorList
- func ValidateAuthorizeTokenUpdate(newToken, oldToken *oauthapi.OAuthAuthorizeToken) field.ErrorList
- func ValidateClient(client *oauthapi.OAuthClient) field.ErrorList
- func ValidateClientAuthorization(clientAuthorization *oauthapi.OAuthClientAuthorization) field.ErrorList
- func ValidateClientAuthorizationName(name string, prefix bool) []string
- func ValidateClientAuthorizationUpdate(newAuth *oauthapi.OAuthClientAuthorization, ...) field.ErrorList
- func ValidateClientNameField(value string, fldPath *field.Path) field.ErrorList
- func ValidateClientUpdate(client *oauthapi.OAuthClient, oldClient *oauthapi.OAuthClient) field.ErrorList
- func ValidateOAuthRedirectReference(sref *oauthapi.OAuthRedirectReference) field.ErrorList
- func ValidateRedirectURI(redirect string) (bool, string)
- func ValidateScopeRestriction(restriction oauthapi.ScopeRestriction, fldPath *field.Path) field.ErrorList
- func ValidateScopes(scopes []string, fldPath *field.Path) field.ErrorList
- func ValidateTokenName(name string, prefix bool) []string
- func ValidateUserNameField(value string, fldPath *field.Path) field.ErrorList
Constants ¶
View Source
const MinTokenLength = 32
Variables ¶
View Source
var CodeChallengeMethodsSupported = []string{codeChallengeMethodPlain, codeChallengeMethodSHA256}
Functions ¶
func ValidateAccessToken ¶
func ValidateAccessToken(accessToken *oauthapi.OAuthAccessToken) field.ErrorList
func ValidateAccessTokenUpdate ¶
func ValidateAccessTokenUpdate(newToken, oldToken *oauthapi.OAuthAccessToken) field.ErrorList
func ValidateAuthorizeToken ¶
func ValidateAuthorizeToken(authorizeToken *oauthapi.OAuthAuthorizeToken) field.ErrorList
func ValidateAuthorizeTokenUpdate ¶
func ValidateAuthorizeTokenUpdate(newToken, oldToken *oauthapi.OAuthAuthorizeToken) field.ErrorList
func ValidateClient ¶
func ValidateClient(client *oauthapi.OAuthClient) field.ErrorList
func ValidateClientAuthorization ¶
func ValidateClientAuthorization(clientAuthorization *oauthapi.OAuthClientAuthorization) field.ErrorList
func ValidateClientAuthorizationUpdate ¶
func ValidateClientAuthorizationUpdate(newAuth *oauthapi.OAuthClientAuthorization, oldAuth *oauthapi.OAuthClientAuthorization) field.ErrorList
func ValidateClientNameField ¶
func ValidateClientUpdate ¶
func ValidateClientUpdate(client *oauthapi.OAuthClient, oldClient *oauthapi.OAuthClient) field.ErrorList
func ValidateOAuthRedirectReference ¶
func ValidateOAuthRedirectReference(sref *oauthapi.OAuthRedirectReference) field.ErrorList
func ValidateRedirectURI ¶
func ValidateTokenName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.