-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ
First and foremost, check your system clock, especially if you're finding this issue in a virtualized environment. Try:
$ date
If the system date is wrong, either set it manually or install NTP.
Also, you may need to set the Callback URL in Twitter settings. Example configuration for development environment can look like:
http://127.0.0.1:3000/auth/twitter/callback
OpenId callbacks are sent using POST request, so remember to disable forgery protection for given action, otherwise session will be clobbered by rails.
skip_before_filter :verify_authenticity_token, :only => :create
If you see warning like this one:
WARNING: making https request to https://www.google.com/accounts/o8/id?id=someid without verifying server certificate; no CA path was specified
You can fix it by adding code to omniauth configuration:
require "openid/fetchers"
OpenID.fetcher.ca_file = "/etc/ssl/certs/ca-certificates.crt"
Change certificate path if you need.
By default, OmniAuth 1.1.0 and later raises an exception in development mode when authentication fails. If you'd prefer it to redirect to a failure page instead, you can include the following code to your omniauth configuration:
OmniAuth.config.on_failure = Proc.new { |env|
OmniAuth::FailureEndpoint.new(env).redirect_to_failure
}
User Docs
- List of Strategies
- Frequently Asked Questions
- Help Topics
- External Resources
- Upgrading to 1.0
- Auth Hash Schema
Strategy Developers
Project Resources