cryptag / leapchat

Ephemeral, encrypted, in-browser chat rooms
https://www.leapchat.org/
Other
184 stars 33 forks source link

Move to JWT-based auth #161

Open elimisteve opened 7 years ago

elimisteve commented 7 years ago

Instructive examples:

https://godoc.org/github.com/dgrijalva/jwt-go#example-NewWithClaims--CustomClaimsType

https://auth0.com/blog/authentication-in-golang/

https://dinosaurscode.xyz/go/2016/06/17/golang-jwt-authentication/

http://www.giantflyingsaucer.com/blog/?p=5994

elimisteve commented 7 years ago

Should only require backend changes, awesomely.

This is an important step in being able to expose PostgREST to the frontend.