Skip to content

Commit 62f4a31

Browse files
committed
Add endpointOIDC expiresAt metadata
1 parent 1112b1c commit 62f4a31

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ type ConfigHost struct {
108108
}
109109

110110
type ConfigEndpointOIDC struct {
111-
Email string
111+
Email string
112+
ExpiresAt *time.Time
112113
}
113114

114115
// Enroll issues an enrollment request against the REST API using the given enrollment code, passing along a locally

message/message.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ type HostHostMetadata struct {
220220

221221
// HostEndpointOIDCMetadata is included in EnrollResponseData.
222222
type HostEndpointOIDCMetadata struct {
223-
Email string `json:"email"`
223+
Email string `json:"email"`
224+
ExpiresAt *time.Time `json:"expiresAt"`
224225
}
225226

226227
// PreAuthEndpoint is called when starting an OIDC auth flow.

0 commit comments

Comments
 (0)