Commit graph

5 commits

Author SHA1 Message Date
zeripath
67942ac1a9
Switch to maintained jwt lib () ()
Backport 

Co-authored-by: Matti R <matti@mdranta.net>
2021-07-24 11:13:50 -04:00
KN4CK3R
29695cd6d5
Add asymmetric JWT signing ()
* Added asymmetric token signing.

* Load signing key from settings.

* Added optional kid parameter.

* Updated documentation.

* Add "kid" to token header.
2021-06-17 23:56:46 +02:00
silverwind
1e6fa57acb
Use single shared random string generation function ()
* Use single shared random string generation function

- Replace 3 functions that do the same with 1 shared one
- Use crypto/rand over math/rand for a stronger RNG
- Output only alphanumerical for URL compatibilty

Fixes: 

* use const string method

* Update modules/avatar/avatar.go

Co-authored-by: a1012112796 <1012112796@qq.com>

Co-authored-by: a1012112796 <1012112796@qq.com>
2021-05-10 07:45:17 +01:00
Jonas Franz
e777c6bdc6 Integrate OAuth2 Provider () 2019-03-08 11:42:50 -05:00
Codruț Constantin Gușoi
96c268c0fc Implements generator cli for secrets ()
Signed-off-by: Codruț Constantin Gușoi <codrut.gusoi@gmail.com>
2018-02-18 20:14:37 +02:00