Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ZeusWPI
Cat
Commits
0e42c372
Commit
0e42c372
authored
Feb 13, 2019
by
flynn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/-/_
parent
67abe2c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
releases/cat-0.1.0-SNAPSHOT.jar
releases/cat-0.1.0-SNAPSHOT.jar
+0
-0
src/clj/cat/moauth.clj
src/clj/cat/moauth.clj
+5
-5
No files found.
releases/cat-0.1.0-SNAPSHOT.jar
View file @
0e42c372
No preview for this file type
src/clj/cat/moauth.clj
View file @
0e42c372
...
...
@@ -8,11 +8,11 @@
; Inspired by https://leonid.shevtsov.me/post/oauth2-is-easy/
(
defn-
oauth2-params
[]
{
:client-id
(
env
:oauth
-
consumer
-
key
)
:client-secret
(
env
:oauth
-
consumer
-
secret
)
:authorize-uri
(
env
:authorize
-
uri
)
:redirect
-
uri
(
str
(
env
:app-host
)
"/oauth/oauth-callback"
)
:access-token-uri
(
env
:access
-
token
-
uri
)
{
:client-id
(
env
:oauth
_
consumer
_
key
)
:client-secret
(
env
:oauth
_
consumer
_
secret
)
:authorize-uri
(
env
:authorize
_
uri
)
:redirect
_
uri
(
str
(
env
:app-host
)
"/oauth/oauth-callback"
)
:access-token-uri
(
env
:access
_
token
_
uri
)
;:scope "activity profile"
})
...
...
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