Rework security module, replace JWT library, invalidate JWT tokens signed for Chrly v4, generate RSA key in runtime when not provided via configuration

This commit is contained in:
ErickSkrauch
2024-02-01 12:11:39 +01:00
parent 11340289ad
commit 10c11bc060
15 changed files with 246 additions and 321 deletions

View File

@@ -3,7 +3,7 @@ package di
import "github.com/defval/di"
func New() (*di.Container, error) {
container, err := di.New(
return di.New(
config,
dispatcher,
logger,
@@ -12,11 +12,6 @@ func New() (*di.Container, error) {
handlers,
profilesDi,
server,
signer,
securityDiOptions,
)
if err != nil {
return nil, err
}
return container, nil
}