func New(logger *cl.CustomLogger, mws []Middleware, SvcConfs ...SvcConf) IAuthNService {
	svc := NewBasicAuthNService()
	svc.cl = logger
	for _, configure := range SvcConfs {
		if configure != nil {
			if err := configure(svc); err != nil {
				logger.Error(context.TODO(), fmt.Sprintf("svc err: %v", err))
				return nil
			}
		}
	}

	var s IAuthNService
	s = svc
	var counter int = 0
	for _, m := range mws {
		s = m(s)
		counter++
	}

	return s
}
// New returns a Authn service implementation with all of the expected middlewares wired in.
New returns a Authn service implementation with all of the expected middlewares wired in.
// New returns a Authn service implementation with all of the expected middlewares wired in .
func New(logger *cl.CustomLogger, mws []Middleware, SvcConfs ...SvcConf) IAuthNService {
	svc := NewBasicAuthNService()
	svc.cl = logger
	for _, configure := range SvcConfs {
		if configure != nil {
			if err := configure(svc); err != nil {
				logger.Error(context.TODO(), fmt.Sprintf("svc err: %v", err))
				return nil
			}
		}
	}
	var s IAuthNService
	s = svc
	var counter int = 0
	for _, m := range mws {
		s = m(s)
		counter++
	}
	return s
}
func New ( logger * cl . CustomLogger , mws [ ] Middleware , SvcConfs ... SvcConf ) IAuthNService { svc := NewBasicAuthNService ( ) svc . cl = logger for _ , configure := range SvcConfs { if configure != nil { if err := configure ( svc ) ; err != nil { logger . Error ( context . TODO ( ) , fmt . Sprintf ( " " , err ) ) return nil } } } var s IAuthNService s = svc var counter int = 0 for _ , m := range mws { s = m ( s ) counter ++ } return s }
New returns a Authn service implementation with all of the expected middlewares wired in.
New returns a Authn service implementation with all of the expected middlewares wired in .