diff --git a/schema/adminschema/README.md b/schema/adminschema/README.md index 4b1b42df..a3f0650b 100644 --- a/schema/adminschema/README.md +++ b/schema/adminschema/README.md @@ -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 + ] } ``` diff --git a/schema/adminschema/v1-gen.go b/schema/adminschema/v1-gen.go index 472aa28e..2f897d09 100644 --- a/schema/adminschema/v1-gen.go +++ b/schema/adminschema/v1-gen.go @@ -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 { diff --git a/schema/adminschema/v1-json.go b/schema/adminschema/v1-json.go index f57ef741..b600e08b 100644 --- a/schema/adminschema/v1-json.go +++ b/schema/adminschema/v1-json.go @@ -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 = `{ } } } + ` \ No newline at end of file diff --git a/schema/adminschema/v1.json b/schema/adminschema/v1.json index 72f11249..6e868461 100644 --- a/schema/adminschema/v1.json +++ b/schema/adminschema/v1.json @@ -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 @@ } } } + diff --git a/schema/workerschema/README.md b/schema/workerschema/README.md index 0e396d66..203b3154 100644 --- a/schema/workerschema/README.md +++ b/schema/workerschema/README.md @@ -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__