mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
Fix passing emitter to the authentication service
This commit is contained in:
parent
d526b74d07
commit
f11dee57ff
13
cmd/serve.go
13
cmd/serve.go
@ -98,11 +98,14 @@ var serveCmd = &cobra.Command{
|
||||
|
||||
address := fmt.Sprintf("%s:%d", viper.GetString("server.host"), viper.GetInt("server.port"))
|
||||
handler := (&http.Skinsystem{
|
||||
Emitter: dispatcher,
|
||||
SkinsRepo: skinsRepo,
|
||||
CapesRepo: capesRepo,
|
||||
MojangTexturesProvider: mojangTexturesProvider,
|
||||
Authenticator: &http.JwtAuth{Key: []byte(viper.GetString("chrly.secret"))},
|
||||
Emitter: dispatcher,
|
||||
SkinsRepo: skinsRepo,
|
||||
CapesRepo: capesRepo,
|
||||
MojangTexturesProvider: mojangTexturesProvider,
|
||||
Authenticator: &http.JwtAuth{
|
||||
Key: []byte(viper.GetString("chrly.secret")),
|
||||
Emitter: dispatcher,
|
||||
},
|
||||
TexturesExtraParamName: viper.GetString("textures.extra_param_name"),
|
||||
TexturesExtraParamValue: viper.GetString("textures.extra_param_value"),
|
||||
}).CreateHandler()
|
||||
|
Loading…
Reference in New Issue
Block a user