-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreds-empty.edn
37 lines (30 loc) · 1.38 KB
/
creds-empty.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{:token {:local {:client-secret ""}
:oauth2 {:google {:client-id ""
:client-secret ""}
:github {:client-id ""
:client-secret ""}
:xero {:client-id ""
:client-secret ""}}
}}
; local
; set "client-secret" to a random string which is used to encrypt tokens
; google
; https://console.developers.google.com/apis
; create app of type WEB APP
; app url is: http://localhost:8080
; callback url is: http://localhost:8080/api/oauth2/redirect/google
; https://console.cloud.google.com/apis/credentials/oauthclient
; github
; https://github.com/settings/developers
; homepage url: http://localhost:8080/
; callback url is: http://localhost:8080/api/oauth2/redirect/github
; note: github oauth2 auth-token endpoint has cors issue. therefore ring handler with auth endpoint exists
; therefore the github redirect url has a different format to the other providers
; list your github oauth apps: https://github.com/settings/applications/
; xero
; https://developer.xero.com/app/manage
; pick oauth2 - webapp
; homepage url: https://localhost:8080/
; redirect url is: http://localhost:8080/api/oauth2/redirect/xero
; https://xeroapi.github.io/xero-node/accounting/index.html
; https://github.com/XeroAPI/xero-node/blob/master/src/gen/api/accountingApi.ts