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

Adding support for authentication token #4

Open
geeosh opened this issue May 14, 2019 · 1 comment
Open

Adding support for authentication token #4

geeosh opened this issue May 14, 2019 · 1 comment

Comments

@geeosh
Copy link

geeosh commented May 14, 2019

So I'd love to be able to pass a Bearer token as an authentication header in Vandal, as my API is only readable with a user session (via Devise) or Api Token. I'd imagine many APIs would likely have this same constraint. I'd be willing to lend a hand to help, although this repo only contains the compiled JS.

Edit: I found the Vandal gem, so I'd imagine we could add auth headers somewhere around here. It would also involve a bit of UI update to enter them.

@richmolj
Copy link
Contributor

Hey @geeosh!

I would love to get a PR in for this, and think you have the correct read on the issue. That said, I currently use request.ly to authenticate against my API. It's nice because it works not just with Vandal, but even hitting the API in a browser directly (we use JWT headers and not cookies).

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

2 participants