sinatra oauth2 google authentication

Demo of using OAuth2 and restricted Google Email domain to login to an app.

1
0
Ruby

sinatra-oauth2-google-authentication

Demo of using OAuth2 and restricted Google Email domain to login to an app.

config:

create/modify config.rb to have the following

ENV[‘G_API_CLIENT’] = “…”

ENV[‘G_API_SECRET’] = “…”

other

If you want to restrict the domain that can login, the :hd parameter does that.