Skip to content

Commit b731b4e

Browse files
committed
API changes for origin PR#17161
Adds Timeout interval configuration for Oauth clients.
1 parent a690540 commit b731b4e

File tree

5 files changed

+166
-85
lines changed

5 files changed

+166
-85
lines changed

oauth/v1/generated.pb.go

Lines changed: 132 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

oauth/v1/generated.proto

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

oauth/v1/types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ type OAuthAccessToken struct {
3737

3838
// RefreshToken is the value by which this token can be renewed. Can be blank.
3939
RefreshToken string `json:"refreshToken,omitempty" protobuf:"bytes,9,opt,name=refreshToken"`
40+
41+
// TimeoutsIn is the seconds from CreationTime before this token timeouts.
42+
TimeoutsIn int32 `json:"timeoutsIn,omitempty" protobuf:"varint,10,opt,name=timeoutsIn"`
4043
}
4144

4245
// +genclient
@@ -117,6 +120,10 @@ type OAuthClient struct {
117120
// AccessTokenMaxAgeSeconds overrides the default access token max age for tokens granted to this client.
118121
// 0 means no expiration.
119122
AccessTokenMaxAgeSeconds *int32 `json:"accessTokenMaxAgeSeconds,omitempty" protobuf:"varint,8,opt,name=accessTokenMaxAgeSeconds"`
123+
124+
// AccessTokenTimeoutSeconds overrides the default token timeout for tokens
125+
// granted to this client. 0 means no timeout.
126+
AccessTokenTimeoutSeconds *int32 `json:"accessTokenTimeoutSeconds,omitempty" protobuf:"varint,9,opt,name=accessTokenTimeoutSeconds"`
120127
}
121128

122129
type GrantHandlerType string

0 commit comments

Comments
 (0)