sangria-relay-playground icon indicating copy to clipboard operation
sangria-relay-playground copied to clipboard

Example with authentification

Open rubenfiszel opened this issue 9 years ago • 3 comments

Hello,

It would be really nice if you made an example with authentification as it is the starting point of many application and a good way to showcase the possibilities of sangria-relay.

It could integrate nicely with:

  • Slick for database
  • Silhouette with JWT for auth

rubenfiszel avatar Mar 14 '16 13:03 rubenfiszel

Have you already saw this example: https://github.com/OlegIlyenko/sangria-auth-example? It's not a relay-based schema, but one can take the same approach in a relay application as well.

This example is documented here: http://sangria-graphql.org/learn/#authentication-and-authorisation

OlegIlyenko avatar Mar 14 '16 13:03 OlegIlyenko

I didn't and it seems like an ideal way to understand how to approach the problem with sangria. The project is very nice and nicely done. I'm surprised you don't have more popularity :)

On Mon, Mar 14, 2016, 14:38 Oleg Ilyenko [email protected] wrote:

Have you already saw this example: https://github.com/OlegIlyenko/sangria-auth-example? It's not a relay-based schema, but one can take the same approach in a relay application as well.

This example is documented here: http://sangria-graphql.org/learn/#authentication-and-authorisation

— Reply to this email directly or view it on GitHub https://github.com/sangria-graphql/sangria-relay-playground/issues/3#issuecomment-196313646 .

rubenfiszel avatar Mar 14 '16 14:03 rubenfiszel

Thank you for kind words! :) I guess it all comes to GraphQL itself, it's very young project and I think it just needs some time to be discovered by more people in scala community.

OlegIlyenko avatar Mar 14 '16 17:03 OlegIlyenko