move auth_method_post to config

This commit is contained in:
Livio Amstutz 2021-11-02 10:09:09 +01:00
parent 4ddf7c7764
commit 7d3b5eb027

View file

@ -87,6 +87,7 @@ type Config struct {
CryptoKey [32]byte CryptoKey [32]byte
DefaultLogoutRedirectURI string DefaultLogoutRedirectURI string
CodeMethodS256 bool CodeMethodS256 bool
AuthMethodPost bool
AuthMethodPrivateKeyJWT bool AuthMethodPrivateKeyJWT bool
GrantTypeRefreshToken bool GrantTypeRefreshToken bool
RequestObjectSupported bool RequestObjectSupported bool
@ -189,7 +190,7 @@ func (o *openidProvider) KeysEndpoint() Endpoint {
} }
func (o *openidProvider) AuthMethodPostSupported() bool { func (o *openidProvider) AuthMethodPostSupported() bool {
return true //todo: config return o.config.AuthMethodPost
} }
func (o *openidProvider) CodeMethodS256Supported() bool { func (o *openidProvider) CodeMethodS256Supported() bool {