William Petit
d5fed4c2ac
Some checks reported errors
Cadoles/bouncer/pipeline/head Something is wrong with the build of this commit
ref CNOUS/mse#3907
19 lines
524 B
Go
19 lines
524 B
Go
package oidc
|
|
|
|
import (
|
|
"forge.cadoles.com/cadoles/bouncer/internal/proxy/director/layer/authn"
|
|
"forge.cadoles.com/cadoles/bouncer/internal/store"
|
|
"github.com/gorilla/sessions"
|
|
)
|
|
|
|
const LayerType store.LayerType = "authn-oidc"
|
|
|
|
func NewLayer(store sessions.Store, funcs ...OptionFunc) *authn.Layer {
|
|
opts := NewOptions(funcs...)
|
|
return authn.NewLayer(LayerType, &Authenticator{
|
|
httpTransport: opts.HTTPTransport,
|
|
httpClientTimeout: opts.HTTPClientTimeout,
|
|
store: store,
|
|
}, opts.AuthnOptions...)
|
|
}
|