made the config debugging better in the saml-module
Dieser Commit ist enthalten in:
Ursprung
63c518f729
Commit
5f309aa8e2
|
@ -53,6 +53,7 @@ type SAML struct {
|
||||||
|
|
||||||
// NewSAMLEndpoint creates an endpoint which handles SAML Requests.
|
// NewSAMLEndpoint creates an endpoint which handles SAML Requests.
|
||||||
func NewSAMLEndpoint(config *toml.Tree) (*SAML, error) {
|
func NewSAMLEndpoint(config *toml.Tree) (*SAML, error) {
|
||||||
|
log.Trace().Str("config", config.String()).Msg("config")
|
||||||
var key interface{}
|
var key interface{}
|
||||||
var err error
|
var err error
|
||||||
var s SAML = *defaultsaml
|
var s SAML = *defaultsaml
|
||||||
|
@ -61,7 +62,6 @@ func NewSAMLEndpoint(config *toml.Tree) (*SAML, error) {
|
||||||
log.Error().Err(err).Msg("Error while mapping config to struct")
|
log.Error().Err(err).Msg("Error while mapping config to struct")
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Trace().Interface("config", config).Msg("cofnig")
|
|
||||||
key, err = initcert(s.SPPrivatekey, func(key interface{}) bool {
|
key, err = initcert(s.SPPrivatekey, func(key interface{}) bool {
|
||||||
_, ok := key.(*rsa.PrivateKey)
|
_, ok := key.(*rsa.PrivateKey)
|
||||||
return ok
|
return ok
|
||||||
|
|
Laden…
In neuem Issue referenzieren