liquidvotingio / api

Enable liquid democracy in your decision making platform
GNU Affero General Public License v3.0
17 stars 3 forks source link

Update /graphiql to use access tokens #28

Open oliverbarnes opened 4 years ago

oliverbarnes commented 4 years ago

https://github.com/absinthe-graphql/absinthe_plug/blob/master/lib/absinthe/plug/graphiql.ex#L71-L75

oliverbarnes commented 4 years ago

Going to wait for when we have support for organizations and multiple tokens

oliverbarnes commented 4 years ago

More involved than expected initially, since we have external auth. Passing in "Org-UUID" manually in the header isn't working, and we don't want that anyway since it'd be exposing the organization uuid which is sensitive. Pausing for now

oliverbarnes commented 4 years ago

Passing org-uuid to a local instance of the api should work, might be a good option for development purposes (instead of having to download a graphiql app), while keeping it disabled on production.