Skip to content

Commit 3a764a0

Browse files
authored
fix: remove required mark (#3693)
1 parent 4a8e9a4 commit 3a764a0

File tree

7 files changed

+393
-32
lines changed

7 files changed

+393
-32
lines changed

flow/consent_types.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,9 @@ type LoginRequest struct {
471471
ID string `json:"challenge"`
472472

473473
// RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.
474-
//
475-
// required: true
476474
RequestedScope sqlxx.StringSliceJSONFormat `json:"requested_scope"`
477475

478476
// RequestedAudience contains the access token audience as requested by the OAuth 2.0 Client.
479-
//
480-
// required: true
481477
RequestedAudience sqlxx.StringSliceJSONFormat `json:"requested_access_token_audience"`
482478

483479
// Skip, if true, implies that the client has requested the same scopes from the same user previously.

internal/httpclient/api/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,8 +3463,6 @@ components:
34633463
- challenge
34643464
- client
34653465
- request_url
3466-
- requested_access_token_audience
3467-
- requested_scope
34683466
- skip
34693467
- subject
34703468
title: Contains information on an ongoing login request.

internal/httpclient/docs/OAuth2LoginRequest.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
88
**Client** | [**OAuth2Client**](OAuth2Client.md) | |
99
**OidcContext** | Pointer to [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional]
1010
**RequestUrl** | **string** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. |
11-
**RequestedAccessTokenAudience** | **[]string** | |
12-
**RequestedScope** | **[]string** | |
11+
**RequestedAccessTokenAudience** | Pointer to **[]string** | | [optional]
12+
**RequestedScope** | Pointer to **[]string** | | [optional]
1313
**SessionId** | Pointer to **string** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional]
1414
**Skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. |
1515
**Subject** | **string** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. |
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
1818

1919
### NewOAuth2LoginRequest
2020

21-
`func NewOAuth2LoginRequest(challenge string, client OAuth2Client, requestUrl string, requestedAccessTokenAudience []string, requestedScope []string, skip bool, subject string, ) *OAuth2LoginRequest`
21+
`func NewOAuth2LoginRequest(challenge string, client OAuth2Client, requestUrl string, skip bool, subject string, ) *OAuth2LoginRequest`
2222

2323
NewOAuth2LoginRequest instantiates a new OAuth2LoginRequest object
2424
This constructor will assign default values to properties that have it defined,
@@ -137,6 +137,11 @@ and a boolean to check if the value has been set.
137137

138138
SetRequestedAccessTokenAudience sets RequestedAccessTokenAudience field to given value.
139139

140+
### HasRequestedAccessTokenAudience
141+
142+
`func (o *OAuth2LoginRequest) HasRequestedAccessTokenAudience() bool`
143+
144+
HasRequestedAccessTokenAudience returns a boolean if a field has been set.
140145

141146
### GetRequestedScope
142147

@@ -157,6 +162,11 @@ and a boolean to check if the value has been set.
157162

158163
SetRequestedScope sets RequestedScope field to given value.
159164

165+
### HasRequestedScope
166+
167+
`func (o *OAuth2LoginRequest) HasRequestedScope() bool`
168+
169+
HasRequestedScope returns a boolean if a field has been set.
160170

161171
### GetSessionId
162172

0 commit comments

Comments
 (0)