Module: Stormpath::Rails

Defined in:
lib/stormpath-rails.rb,
lib/stormpath/rails.rb,
lib/stormpath/rails/client.rb,
lib/stormpath/rails/engine.rb,
lib/stormpath/rails/router.rb,
lib/stormpath/rails/social.rb,
lib/stormpath/rails/api_key.rb,
lib/stormpath/rails/version.rb,
lib/stormpath/rails/controller.rb,
lib/stormpath/rails/configuration.rb,
app/forms/stormpath/rails/login_form.rb,
lib/stormpath/rails/config/read_file.rb,
lib/stormpath/rails/env_names_warning.rb,
lib/stormpath/rails/routing_constraint.rb,
app/services/stormpath/rails/url_builder.rb,
app/services/stormpath/rails/account_login.rb,
app/forms/stormpath/rails/organization_form.rb,
app/forms/stormpath/rails/registration_form.rb,
app/forms/stormpath/rails/social_login_form.rb,
lib/stormpath/rails/content_type_negotiator.rb,
lib/stormpath/rails/errors/no_sptoken_error.rb,
app/services/stormpath/rails/password_change.rb,
lib/stormpath/rails/github_auth_code_exchange.rb,
app/controllers/stormpath/rails/base_controller.rb,
app/serializers/stormpath/rails/form_serializer.rb,
app/services/stormpath/rails/verify_email_token.rb,
lib/stormpath/rails/config/id_site_verification.rb,
lib/stormpath/rails/facebook_auth_code_exchange.rb,
app/services/stormpath/rails/delete_access_token.rb,
app/services/stormpath/rails/token_cookie_setter.rb,
lib/stormpath/rails/config/dynamic_configuration.rb,
lib/stormpath/rails/errors/invalid_sptoken_error.rb,
app/controllers/stormpath/rails/social_controller.rb,
app/services/stormpath/rails/delete_refresh_token.rb,
lib/stormpath/rails/config/application_resolution.rb,
app/forms/stormpath/rails/registration_form_fields.rb,
app/serializers/stormpath/rails/account_serializer.rb,
app/serializers/stormpath/rails/profile_serializer.rb,
app/services/stormpath/rails/organization_resolver.rb,
app/controllers/stormpath/rails/login/new_controller.rb,
app/serializers/stormpath/rails/login_new_serializer.rb,
lib/stormpath/rails/config/multitenancy_verification.rb,
lib/stormpath/rails/config/social_login_verification.rb,
app/controllers/stormpath/rails/oauth2/new_controller.rb,
lib/stormpath/rails/config/account_store_verification.rb,
app/services/stormpath/rails/account_from_access_token.rb,
app/services/stormpath/rails/controller_authentication.rb,
app/services/stormpath/rails/resend_email_verification.rb,
app/services/stormpath/rails/send_password_reset_email.rb,
app/services/stormpath/rails/token_and_cookies_cleaner.rb,
app/controllers/stormpath/rails/login/create_controller.rb,
app/controllers/stormpath/rails/profile/show_controller.rb,
app/controllers/stormpath/rails/register/new_controller.rb,
app/controllers/stormpath/rails/github/create_controller.rb,
app/controllers/stormpath/rails/google/create_controller.rb,
app/controllers/stormpath/rails/logout/create_controller.rb,
app/controllers/stormpath/rails/oauth2/create_controller.rb,
lib/stormpath/rails/errors/no_github_authorization_error.rb,
app/services/stormpath/rails/refresh_token_authentication.rb,
app/controllers/stormpath/rails/facebook/create_controller.rb,
app/controllers/stormpath/rails/linkedin/create_controller.rb,
app/controllers/stormpath/rails/register/create_controller.rb,
lib/stormpath/rails/errors/no_facebook_authorization_error.rb,
app/controllers/stormpath/rails/verify_email/show_controller.rb,
app/serializers/stormpath/rails/registration_form_serializer.rb,
app/controllers/stormpath/rails/change_password/new_controller.rb,
app/controllers/stormpath/rails/forgot_password/new_controller.rb,
app/controllers/stormpath/rails/verify_email/create_controller.rb,
app/services/stormpath/rails/client_credentials_authentication.rb,
app/controllers/stormpath/rails/id_site_callback/new_controller.rb,
app/services/stormpath/rails/account_login_with_stormpath_token.rb,
app/services/stormpath/rails/forgot_password_token_verification.rb,
app/controllers/stormpath/rails/change_password/create_controller.rb,
app/controllers/stormpath/rails/forgot_password/create_controller.rb,
app/services/stormpath/rails/controller_authentication/from_cookies.rb

Defined Under Namespace

Modules: ChangePassword, Config, Controller, EnvNamesWarning, Facebook, ForgotPassword, Github, Google, IdSiteCallback, Linkedin, Login, Logout, Oauth2, Profile, Register, Router, RoutingConstraint, Social, VerifyEmail Classes: AccountFromAccessToken, AccountLogin, AccountLoginWithStormpathToken, AccountSerializer, ApiKey, BaseController, Client, ClientCredentialsAuthentication, Configuration, ContentTypeNegotiator, ControllerAuthentication, DeleteAccessToken, DeleteRefreshToken, Engine, FacebookAuthCodeExchange, ForgotPasswordTokenVerification, FormSerializer, GithubAuthCodeExchange, InvalidSptokenError, LoginForm, LoginNewSerializer, NoFacebookAuthorizationError, NoGithubAuthorizationError, NoSptokenError, OrganizationForm, OrganizationResolver, PasswordChange, ProfileSerializer, RefreshTokenAuthentication, RegistrationForm, RegistrationFormFields, RegistrationFormSerializer, ResendEmailVerification, SendPasswordResetEmail, SocialController, SocialLoginForm, TokenAndCookiesCleaner, TokenCookieSetter, UrlBuilder, VerifyEmailToken

Constant Summary collapse

VERSION =
'2.6.0'.freeze
InvalidConfiguration =
Class.new(ArgumentError)
DEFAULT_CONFIG_RELATIVE_FILE_PATH =
'../../../../lib/generators/stormpath/install/templates/default_config.yml'.freeze

Class Method Summary collapse

Class Method Details

.configObject



51
52
53
54
55
56
57
# File 'lib/stormpath/rails/configuration.rb', line 51

def self.config
  @configuration ||= Configuration.new(
    Config::ReadFile.new(
      ::Rails.application.root.join('config/stormpath.yml')
    ).hash
  )
end