Add Identity Provider to support Authentication via Authentik,OpenID ,etc..
This commit is contained in:
parent
0647725c68
commit
430f46ffee
10 changed files with 269 additions and 30 deletions
5
main.go
5
main.go
|
@ -52,6 +52,7 @@ func main() {
|
|||
|
||||
// fx.Provide(config.NewConfig),
|
||||
fx.Provide(auth.NewAuthMiddleware),
|
||||
fx.Provide(auth.NewIdentityProvider),
|
||||
|
||||
// fx.Provide(NewBot),
|
||||
fx.Provide(database.NewDatabase),
|
||||
|
@ -89,7 +90,7 @@ func main() {
|
|||
fx.Provide(lRepo.NewLabelRepository),
|
||||
fx.Provide(label.NewHandler),
|
||||
|
||||
fx.Provide(thing.NewWebhook),
|
||||
fx.Provide(thing.NewAPI),
|
||||
fx.Provide(thing.NewHandler),
|
||||
|
||||
fx.Provide(chore.NewAPI),
|
||||
|
@ -103,7 +104,7 @@ func main() {
|
|||
user.Routes,
|
||||
circle.Routes,
|
||||
thing.Routes,
|
||||
thing.Webhooks,
|
||||
thing.APIs,
|
||||
label.Routes,
|
||||
frontend.Routes,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue