Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BASIC_AUTH config option #3

Open
atomdmac opened this issue Jun 30, 2017 · 0 comments
Open

BASIC_AUTH config option #3

atomdmac opened this issue Jun 30, 2017 · 0 comments

Comments

@atomdmac
Copy link

atomdmac commented Jun 30, 2017

Is it necessary to change the BASIC_AUTH option in config.js from it's default of "BASIC_AUTH"? Based on past experience w/ this type of auth, a user's encoded username+password or a token would go here but my impression was that OAuth obviates that. What am I missing?

(For context, I'm currently having trouble authorizing w/ our private Mautic instance and I'm trying to rule out possible causes.)

Thanks in advance for any help that can be provided!

EDIT
Making a change to line 5 in contacts.js seems to get around the 401 errors that I was getting. A JSON response is returned as expected. I'm still curious to know if there's something I'm missing here, though.

From:

axios.defaults.headers.common['Authorization'] = `basic ${ENV.BASIC_AUTH}`

To:

axios.defaults.headers.common['Authorization'] = `Bearer ${ENV.ACCESS_TOKEN}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant