Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 130 forks source link

Add 'select user' functionality to standard endpoint playgrounds #222

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by kbrandwijk Sunday Sep 10, 2017 at 11:13 GMT Originally opened as https://github.com/graphcool/prisma/issues/525


It would be helpful to be able to select a user when using the default playground at an endpoint. I now use a browser extension (Modify headers) for this.

marktani commented 6 years ago

Comment by marktani Sunday Sep 10, 2017 at 17:14 GMT


This requires graphcool-lib (+ root token) or an authenticated call to the System API, so it cannot just be enabled in the public playground.

marktani commented 6 years ago

Comment by kbrandwijk Sunday Sep 10, 2017 at 23:24 GMT


On the surface, you're right. However, there might be other solutions to consider. For example, a sign in button like on the console (using the same Graphcool console Auth0, so basically SSO). Or, a query parameter that allows you to specify a token (instead of having to modify the headers). Or... suggestions are welcome!

marktani commented 6 years ago

Comment by marktani Monday Sep 11, 2017 at 08:07 GMT


Yes we should definitely think about ways to offer this 🙂