renamed HttpClient to HTTPClient.
Dieser Commit ist enthalten in:
Ursprung
ba2ed57968
Commit
cca8fcc237
|
@ -48,7 +48,7 @@ type SAML struct {
|
||||||
UnkownAuthority bool
|
UnkownAuthority bool
|
||||||
IDP string `comment:"URL of the Metadata of the IDP"`
|
IDP string `comment:"URL of the Metadata of the IDP"`
|
||||||
sp *saml.ServiceProvider
|
sp *saml.ServiceProvider
|
||||||
HttpClient http.Client `toml:"-"`
|
HTTPClient http.Client `toml:"-"`
|
||||||
Domain string
|
Domain string
|
||||||
Cookiename string
|
Cookiename string
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ func NewSAMLEndpoint(config *toml.Tree) (s *SAML, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.sp.IDPMetadata, err = samlsp.FetchMetadata(context.Background(), &s.HttpClient, *idpurl)
|
s.sp.IDPMetadata, err = samlsp.FetchMetadata(context.Background(), &s.HTTPClient, *idpurl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Laden…
In neuem Issue referenzieren