qor / auth

Golang Authentication solution
MIT License
733 stars 99 forks source link

SignedString is an empty string #8

Open bonifaido opened 6 years ago

bonifaido commented 6 years ago

I think there is an issue with the token signing, which is that the value of SignedString is never set (so it is the default empty string) but it is used for signing tokens: https://github.com/qor/auth/blob/f21148b6eb4cbf3d5bf6b0fa4cfd55de66bd497f/session_storer.go#L78

sergolius commented 4 years ago

Default SessionStorer obviously has omitted SignedString, it's secret of a session. https://github.com/qor/auth/blob/709ba0ce943b0527f9fbdd4d469e3b157a3f1756/auth.go#L88-L94 You have to define it on your own.

ghost commented 4 years ago

I created a fork of qor where I committed several fixes/pull requests to make it work. Available at, https://github.com/qorpress/qorpress-auth-example