Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
4f8dc0df
Commit
4f8dc0df
authored
Feb 18, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix static vars
parent
9003cb10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/models/user.rb
+2
-2
config/initializers/omniauth.rb
+1
-1
No files found.
app/models/user.rb
View file @
4f8dc0df
...
@@ -44,8 +44,8 @@ class User < ActiveRecord::Base
...
@@ -44,8 +44,8 @@ class User < ActiveRecord::Base
builder
.
adapter
:net_http
builder
.
adapter
:net_http
end
end
response
=
conn
.
post
'/o/oauth2/token'
,
response
=
conn
.
post
'/o/oauth2/token'
,
client_id:
ENV
[
'GOOGLE_KEY'
]
,
client_id:
Settings
.
google_api
.
client_id
,
client_secret:
ENV
[
'GOOGLE_SECRET'
]
,
client_secret:
Settings
.
google_api
.
secret
,
refresh_token:
google_refresh_token
,
refresh_token:
google_refresh_token
,
grant_type:
'refresh_token'
grant_type:
'refresh_token'
...
...
config/initializers/omniauth.rb
View file @
4f8dc0df
Rails
.
application
.
config
.
middleware
.
use
OmniAuth
::
Builder
do
Rails
.
application
.
config
.
middleware
.
use
OmniAuth
::
Builder
do
provider
:google_oauth2
,
ENV
[
'GOOGLE_CLIENT_ID'
],
ENV
[
'GOOGLE_CLIENT_SECRET'
]
,
provider
:google_oauth2
,
Settings
.
google_api
.
client_id
,
Settings
.
google_api
.
secret
,
name:
'google_oauth2'
,
name:
'google_oauth2'
,
scope:
'https://mail.google.com/, userinfo.email, userinfo.profile'
,
scope:
'https://mail.google.com/, userinfo.email, userinfo.profile'
,
access_type:
'offline'
,
access_type:
'offline'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment