move auth_method_post to config
This commit is contained in:
parent
4ddf7c7764
commit
7d3b5eb027
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue