graphiti-api / vandal_ui

Ruby gem for installing Vandal
MIT License
9 stars 12 forks source link

Adding Authentication Token for api requests #10

Open annapurna opened 4 years ago

annapurna commented 4 years ago

How to pass an authentication token to api requests here?

yjukaku commented 4 years ago

I'm also interested in knowing about this.

richmolj commented 4 years ago

I use request.ly which has the added benefit of being able to hit the endpoints directly with your browser

XHPJ commented 3 years ago

Hi @richmolj I would like to implement a token support for vandal but right now I am a bit clueless on how to do this. I saw the issue #4 and there it was suggested to start in the query.ts file https://github.com/graphiti-api/vandal/blob/b3fa13366316e3c63f6e9b466d576d600fab2744/src/query.ts#L110. Would this be all on the vandal side?

richmolj commented 3 years ago

Yep you got it. That's where we query the server. So we need some UI to accept the header, and then alter query.ts to send that header when making API requests