feat: Add support for OAuth2 Client metadata property (#38)

See #36
This commit is contained in:
Ante Mihalj
2020-02-03 12:40:44 +01:00
committed by GitHub
parent 8ba95dd5a1
commit 208d1451db
6 changed files with 82 additions and 28 deletions

View File

@ -455,13 +455,16 @@ spec:
minItems: 1
type: array
tokenEndpointAuthMethod:
description: Indication which authenticaiton method shoud be used for the token endpoint.
description: Indication which authentication method shoud be used for the token endpoint.
type: string
enum:
- client_secret_basic
- client_secret_post
- private_key_jwt
- none
metadata:
description: Metadata is arbitrary data. This JSON will be stored into client and can be used to hold custom properties
type: object
scope:
description: Scope is a string containing a space-separated list of
scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749])

View File

@ -30,4 +30,7 @@ spec:
endpoint: /clients
forwardedProto: https
tokenEndpointAuthMethod: client_secret_basic
metadata:
property1: 1
property2: "2"

View File

@ -40,3 +40,6 @@ spec:
endpoint: /clients
forwardedProto: https
tokenEndpointAuthMethod: client_secret_basic
metadata:
property1: 1
property2: "2"