From 3c14d7505a5d82df8e5613ba6a8b49fca6c31ea7 Mon Sep 17 00:00:00 2001 From: reinkrul Date: Fri, 21 Jun 2024 13:48:56 +0200 Subject: [PATCH] Auth v2: rename tokenType to token_type to keep things consistent (#3202) --- auth/api/iam/generated.go | 6 +++--- docs/_static/auth/v2.yaml | 9 ++++----- e2e-tests/browser/client/iam/generated.go | 6 +++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/auth/api/iam/generated.go b/auth/api/iam/generated.go index cf09a8fa61..d57a90ca3f 100644 --- a/auth/api/iam/generated.go +++ b/auth/api/iam/generated.go @@ -132,12 +132,12 @@ type ServiceAccessTokenRequest struct { // Scope The scope that will be the service for which this access token can be used. Scope string `json:"scope"` - // TokenType The type of access token that is prefered, default: DPoP - TokenType *ServiceAccessTokenRequestTokenType `json:"tokenType,omitempty"` + // TokenType The type of access token that is preferred, default: DPoP + TokenType *ServiceAccessTokenRequestTokenType `json:"token_type,omitempty"` Verifier string `json:"verifier"` } -// ServiceAccessTokenRequestTokenType The type of access token that is prefered, default: DPoP +// ServiceAccessTokenRequestTokenType The type of access token that is preferred, default: DPoP type ServiceAccessTokenRequestTokenType string // TokenIntrospectionRequest Token introspection request as described in RFC7662 section 2.1 diff --git a/docs/_static/auth/v2.yaml b/docs/_static/auth/v2.yaml index 7fba11999f..88eb14b8b5 100644 --- a/docs/_static/auth/v2.yaml +++ b/docs/_static/auth/v2.yaml @@ -392,12 +392,11 @@ components: type: string description: The scope that will be the service for which this access token can be used. example: eOverdracht-sender - tokenType: + token_type: type: string - description: "The type of access token that is prefered, default: DPoP" - enum: - - Bearer - - DPoP + description: "The type of access token that is preferred, default: DPoP" + default: DPoP + enum: [ Bearer, DPoP ] UserAccessTokenRequest: type: object description: Request for an access token for a user. diff --git a/e2e-tests/browser/client/iam/generated.go b/e2e-tests/browser/client/iam/generated.go index 8a65d179fd..73627865b2 100644 --- a/e2e-tests/browser/client/iam/generated.go +++ b/e2e-tests/browser/client/iam/generated.go @@ -130,12 +130,12 @@ type ServiceAccessTokenRequest struct { // Scope The scope that will be the service for which this access token can be used. Scope string `json:"scope"` - // TokenType The type of access token that is prefered, default: DPoP - TokenType *ServiceAccessTokenRequestTokenType `json:"tokenType,omitempty"` + // TokenType The type of access token that is preferred, default: DPoP + TokenType *ServiceAccessTokenRequestTokenType `json:"token_type,omitempty"` Verifier string `json:"verifier"` } -// ServiceAccessTokenRequestTokenType The type of access token that is prefered, default: DPoP +// ServiceAccessTokenRequestTokenType The type of access token that is preferred, default: DPoP type ServiceAccessTokenRequestTokenType string // TokenIntrospectionRequest Token introspection request as described in RFC7662 section 2.1