adminschema: add trustedPeers to client creation
This commit is contained in:
parent
f9dbc8a3d2
commit
5e9dd9f4b0
5 changed files with 26 additions and 3 deletions
|
@ -34,7 +34,10 @@ __Version:__ v1
|
|||
redirectURIs: [
|
||||
string
|
||||
],
|
||||
secret: string // The client secret. Ignored in client create requests.
|
||||
secret: string // The client secret. Ignored in client create requests.,
|
||||
trustedPeers: [
|
||||
string
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -148,6 +148,10 @@ type Client struct {
|
|||
|
||||
// Secret: The client secret. Ignored in client create requests.
|
||||
Secret string `json:"secret,omitempty"`
|
||||
|
||||
// TrustedPeers: Array of ClientIDs of clients that are allowed to mint
|
||||
// ID tokens for the client being created.
|
||||
TrustedPeers []string `json:"trustedPeers,omitempty"`
|
||||
}
|
||||
|
||||
type ClientCreateRequest struct {
|
||||
|
|
|
@ -84,6 +84,13 @@ const DiscoveryJSON = `{
|
|||
"clientURI": {
|
||||
"type": "string",
|
||||
"description": "OPTIONAL. URL of the home page of the Client. The value of this field MUST point to a valid Web page. If present, the server SHOULD display this URL to the End-User in a followable fashion. If desired, representation of this Claim in different languages and scripts is represented as described in Section 2.1 ( Metadata Languages and Scripts ) ."
|
||||
},
|
||||
"trustedPeers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Array of ClientIDs of clients that are allowed to mint ID tokens for the client being created."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -228,4 +235,5 @@ const DiscoveryJSON = `{
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
`
|
|
@ -78,6 +78,13 @@
|
|||
"clientURI": {
|
||||
"type": "string",
|
||||
"description": "OPTIONAL. URL of the home page of the Client. The value of this field MUST point to a valid Web page. If present, the server SHOULD display this URL to the End-User in a followable fashion. If desired, representation of this Claim in different languages and scripts is represented as described in Section 2.1 ( Metadata Languages and Scripts ) ."
|
||||
},
|
||||
"trustedPeers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Array of ClientIDs of clients that are allowed to mint ID tokens for the client being created."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -222,3 +229,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -232,8 +232,8 @@ A client with associated public metadata.
|
|||
|
||||
> |Name|Located in|Description|Required|Type|
|
||||
|:-----|:-----|:-----|:-----|:-----|
|
||||
| userid | path | | Yes | string |
|
||||
| clientid | path | | Yes | string |
|
||||
| userid | path | | Yes | string |
|
||||
|
||||
|
||||
> __Responses__
|
||||
|
@ -310,8 +310,8 @@ A client with associated public metadata.
|
|||
|
||||
> |Name|Located in|Description|Required|Type|
|
||||
|:-----|:-----|:-----|:-----|:-----|
|
||||
| maxResults | query | | No | integer |
|
||||
| nextPageToken | query | | No | string |
|
||||
| maxResults | query | | No | integer |
|
||||
|
||||
|
||||
> __Responses__
|
||||
|
|
Reference in a new issue