goweb-oidc/provider.go

12 lines
233 B
Go

package oidc
import "gitlab.com/wpetit/goweb/service"
func ServiceProvider(opts ...OptionFunc) service.Provider {
client := NewClient(opts...)
return func(ctn *service.Container) (interface{}, error) {
return client, nil
}
}