Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Cefin
OLIGAA
Commits
7533705a
Commit
7533705a
authored
Jun 04, 2018
by
Alexandre Friquet
Committed by
Alexandre Friquet
Jun 04, 2018
Browse files
Make Google Oauth 2 client id private cutomization data.
(cherry picked from commit
317ee0d4
)
parent
6f4a4bba
Changes
2
Hide whitespace changes
Inline
Side-by-side
.env.example
View file @
7533705a
...
...
@@ -31,3 +31,6 @@ APP_SECRET_TOKEN='cookies_secret'
# Secret used to prevent cross-site scripting attacks
# with URL store for breadcrumb
GRETEL_TRAILS_SECRET='gretel_secret'
# Google service account Oauth 2.0 client ID for Google
# Calendar synchronization
# GOOGLE_CLIENT_ID=''
app/models/google_agenda/service.rb
View file @
7533705a
...
...
@@ -46,7 +46,7 @@ module GoogleAgenda
:token_credential_uri
=>
'https://accounts.google.com/o/oauth2/token'
,
:audience
=>
'https://accounts.google.com/o/oauth2/token'
,
:scope
=>
'https://www.googleapis.com/auth/calendar'
,
:issuer
=>
'477610709683-4rn3impci9hpaltkqc3qrm01dajdoi0j@developer.gserviceaccount.com'
,
:issuer
=>
ENV
[
'GOOGLE_CLIENT_ID'
]
,
:signing_key
=>
key
,
:person
=>
Website
.
first
.
gcal_user
)
...
...
@@ -66,4 +66,4 @@ module GoogleAgenda
Singleton
.
send
:__init__
,
self
end
end
end
\ No newline at end of file
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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