netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.82k stars 283 forks source link

Upgrade to jwt v4, gofrs uuid, and other deps #276

Closed jrapoport closed 3 years ago

jrapoport commented 3 years ago

- Summary

Upgrade to jwt v4, gofrs uuid, and other dependencies.

Add support to configure the JWT signing method

// JWTConfiguration holds all the JWT related configuration.
type JWTConfiguration struct {
        ...
    Method  string `json:"method" default:"HS256"`
}

- Test plan

tests pass

- Description for the changelog

Upgrade to jwt v4, gofrs uuid, and other deps

- A picture of a cute animal (not mandatory but encouraged)

mraerino commented 3 years ago

@jrapoport this PR mikes a lot of different changes to fundamental parts of the repo. while some of the changes are easy to land (e.g. dependency updates) some might need discussion or changes.

please try to scope down the surface of a single PR and submit multiple ones.

jrapoport commented 3 years ago

I branched this off the version that moved to gorm. I will see if I can find time to make it its own PR. I have / am adding full grpc / grpc-web support, but it seems like these changes are too sweeping generally. I will keep them on my fork and spare you further PRs.

jrapoport commented 3 years ago

I'm dropping a link here for anyone that finds this and wants to use it: https://github.com/jrapoport/gothic

it started off as a PR/ fork, but has since been completely rewritten.