WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2776d9e

Browse files
committed
Add endpoint oidc email to doUpdate response
1 parent ee1ad14 commit 2776d9e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ func (c *Client) DoUpdate(ctx context.Context, creds keys.Credentials) ([]byte,
388388
Name: result.Host.Name,
389389
IPAddress: result.Host.IPAddress,
390390
},
391+
EndpointOIDC: ConfigEndpointOIDC{
392+
Email: result.EndpointOIDCMeta.Email,
393+
},
391394
}
392395

393396
return result.Config, nebulaPrivkeyPEM, newCreds, meta, nil

message/message.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,14 @@ type DoUpdateRequest struct {
7373

7474
// DoUpdateResponse is the response generated for a DoUpdate request.
7575
type DoUpdateResponse struct {
76-
Config []byte `json:"config"`
77-
Counter uint `json:"counter"`
78-
Nonce []byte `json:"nonce"`
79-
TrustedKeys []byte `json:"trustedKeys"`
80-
Organization HostOrgMetadata `json:"organization"`
81-
Network HostNetworkMetadata `json:"network"`
82-
Host HostHostMetadata `json:"host"`
76+
Config []byte `json:"config"`
77+
Counter uint `json:"counter"`
78+
Nonce []byte `json:"nonce"`
79+
TrustedKeys []byte `json:"trustedKeys"`
80+
Organization HostOrgMetadata `json:"organization"`
81+
Network HostNetworkMetadata `json:"network"`
82+
Host HostHostMetadata `json:"host"`
83+
EndpointOIDCMeta *HostEndpointOIDCMetadata `json:"endpointOIDC,omitempty"`
8384
}
8485

8586
// LongPollWaitResponseWrapper contains a response to LongPollWait inside "data."

0 commit comments

Comments
 (0)