omniauth-google-oauth2
redd
omniauth-google-oauth2 | redd | |
---|---|---|
1 | 1 | |
1,429 | 186 | |
- | - | |
4.6 | 0.0 | |
about 2 months ago | about 1 year ago | |
Ruby | Ruby | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
omniauth-google-oauth2
-
GOOGLE OMNIAUTH IN A RAILS APP
You can read more about the auth hash at https://github.com/zquestz/omniauth-google-oauth2. We can access the information by using the hash syntax. For example, if we want to get the user's email address we can use request.env['omniauth.auth']['info']['email']. In the omniauth action in the sessions controller we are using the find_or_create_by method to find the user by their uid and provider or create a new user if they don't exist. We are also using the SecureRandom.hex(10) to set the password.This sets the password to a random string of 10 characters.
redd
What are some alternatives?
rodauth-oauth - (Mirror) Roda OAuth and OpenID provider plugin
Octokit - Ruby toolkit for the GitHub API
omniauth-rails - Rails omniauth - Google
tweetstream - A simple EventMachine-based library for consuming Twitter's Streaming API.
Yt - The reliable YouTube API Ruby client
hipchat-rb - HipChat HTTP API Wrapper in Ruby with Capistrano hooks
OmniAuth - OmniAuth is a flexible authentication system utilizing Rack middleware.
Pusher - Ruby library for Pusher Channels HTTP API
omniauth-oauth2 - An abstract OAuth2 strategy for OmniAuth.
twilio-ruby - A Ruby gem for communicating with the Twilio API and generating TwiML
omniauth-azure-activedirectory-v2 - OAuth 2 authentication with the Azure ActiveDirectory V2 API.
Restforce - A Ruby client for the Salesforce REST API.