Module: ThreeScale::Backend::Validators
- Defined in:
- lib/3scale/backend/validators.rb,
lib/3scale/backend/validators/key.rb,
lib/3scale/backend/validators/base.rb,
lib/3scale/backend/validators/state.rb,
lib/3scale/backend/validators/limits.rb,
lib/3scale/backend/validators/referrer.rb,
lib/3scale/backend/validators/oauth_key.rb,
lib/3scale/backend/validators/redirect_uri.rb,
lib/3scale/backend/validators/oauth_setting.rb,
lib/3scale/backend/validators/service_state.rb
Defined Under Namespace
Classes: Base, Key, Limits, OauthKey, OauthSetting, RedirectURI, Referrer, ServiceState, State
Constant Summary collapse
- COMMON_VALIDATORS =
[Validators::Referrer, Validators::State, # application state Validators::ServiceState, # service state Validators::Limits].freeze
- VALIDATORS =
([Validators::Key] + COMMON_VALIDATORS).freeze
- OAUTH_VALIDATORS =
([Validators::OauthSetting, Validators::OauthKey, Validators::RedirectURI] + COMMON_VALIDATORS).freeze
- OIDC_VALIDATORS =
OIDC specific validators will only check app keys when app_key is given.
No need to add OauthSetting, since we need to check that to tell OIDC apart from the rest when calling authrep.xml (note lack of the oauth_ prefix).
([Validators::OauthKey] + COMMON_VALIDATORS).freeze