Skip to content

Commit

Permalink
add: switch to mautic basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed May 24, 2020
1 parent e9846c9 commit 207404b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .env.test
Expand Up @@ -21,7 +21,6 @@ ZOOM_SERVER_BASEURL=https://api.zoomauth.com/api/v2/biometrics
# https://dev.zoomlogin.com/#/matching-guide
ZOOM_MINIMAL_MATCHLEVEL=1
MAUTIC_URL=https://go.gooddollar.org/api
MAUTIC_TOKEN=NjdlZmE4NmEwNjA3OTBiNTQ1ZmVjMDEyMzgxZjkxYTQyZDc4N2M5MThiOTFjN2Q0Y2U5ODhjNjU1NzNhYTU4ZA
SKIP_EMAIL_VERIFICATION=false
ALLOW_DUPLICATE_USER_DATA=false
SKIP_FACE_VERIFICATION=false
Expand All @@ -42,4 +41,4 @@ MONGO_DB_URI=mongodb+srv://noncemanager:WLLsTC6k7hqN73JI@walletnonce-zllov.mongo
ZOOM_MINIMAL_MATCHLEVEL=1
NUMBER_OF_ADMIN_WALLET_ACCOUNTS=5
CLAIM_QUEUE_ALLOWED=1
MAUTIC_TOKEN=Y2NkNWQxZmUyNzQzNGI5NWVlYzE5MDhlNzNlOGVhYjc1YjNlMzg4ZDhjYTBlYTU1OTJjYjQzMzQ1YjllMmUxYg
MAUTIC_BASIC_TOKEN=
2 changes: 1 addition & 1 deletion src/server/mautic/mauticAPI.js
Expand Up @@ -16,7 +16,7 @@ const Timeout = (timeout: msec) => {
export const Mautic = {
baseUrl: Config.mauticURL,
baseHeaders: {
Authorization: `Bearer ${Config.mauticToken}`,
Authorization: `Basic ${Config.mauticBasicToken}`,
'Content-Type': 'application/json'
},

Expand Down
6 changes: 6 additions & 0 deletions src/server/server.config.js
Expand Up @@ -208,6 +208,12 @@ const conf = convict({
env: 'MAUTIC_TOKEN',
default: 'MAUTIC_TOKEN'
},
mauticBasicToken: {
doc: 'mautic basic auth token',
format: String,
env: 'MAUTIC_BASIC_TOKEN',
default: null
},
mauticRecoveryEmailId: {
doc: 'id of email template',
format: '*',
Expand Down

0 comments on commit 207404b

Please sign in to comment.