feat: add REVA appauth as oCIS service

This commit is contained in:
Thomas Müller
2024-07-23 08:58:07 +02:00
committed by jkoberg
parent 43403edfb8
commit 1eb66eb18c
21 changed files with 696 additions and 4 deletions
+6
View File
@@ -3,6 +3,7 @@ package service
import (
"context"
"fmt"
authapp "github.com/owncloud/ocis/v2/services/auth-app/pkg/command"
"net"
"net/http"
"net/rpc"
@@ -160,6 +161,11 @@ func NewService(options ...Option) (*Service, error) {
cfg.AppRegistry.Commons = cfg.Commons
return appRegistry.Execute(cfg.AppRegistry)
})
reg(3, opts.Config.AuthApp.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
cfg.AuthApp.Context = ctx
cfg.AuthApp.Commons = cfg.Commons
return authapp.Execute(cfg.AuthApp)
})
reg(3, opts.Config.AuthBasic.Service.Name, func(ctx context.Context, cfg *ociscfg.Config) error {
cfg.AuthBasic.Context = ctx
cfg.AuthBasic.Commons = cfg.Commons