Skip to content

Commit 76f22ed

Browse files
chore: Removed HTTP verbs PUT, PATCH and DELETE for oauth2/auth
1 parent 4b1b797 commit 76f22ed

1 file changed

Lines changed: 0 additions & 60 deletions

File tree

app/Http/Controllers/OAuth2/OAuth2ProviderController.php

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -124,66 +124,6 @@ public function __construct
124124
new OA\Response(response: HttpResponse::HTTP_BAD_REQUEST, description: 'Bad Request', content: new OA\JsonContent(ref: '#/components/schemas/OAuth2ErrorResponse')),
125125
]
126126
)]
127-
#[OA\Put(
128-
path: '/oauth2/auth',
129-
operationId: 'oauth2AuthorizePut',
130-
summary: 'OAuth2 Authorization Endpoint (PUT)',
131-
description: 'Initiates an OAuth2 authorization flow via PUT. Same parameters as GET but sent as form data.',
132-
tags: ['OAuth2 / OpenID Connect'],
133-
requestBody: new OA\RequestBody(
134-
description: 'Authorization request parameters',
135-
required: true,
136-
content: new OA\MediaType(
137-
mediaType: 'application/x-www-form-urlencoded',
138-
schema: new OA\Schema(ref: '#/components/schemas/OAuth2AuthorizationRequest')
139-
)
140-
),
141-
responses: [
142-
new OA\Response(response: HttpResponse::HTTP_OK, description: 'Authorization request processed (response in body), depends on "response_mode" param'),
143-
new OA\Response(response: HttpResponse::HTTP_FOUND, description: 'Redirect to client redirect_uri with authorization code, tokens, or error'),
144-
new OA\Response(response: HttpResponse::HTTP_BAD_REQUEST, description: 'Bad Request', content: new OA\JsonContent(ref: '#/components/schemas/OAuth2ErrorResponse')),
145-
]
146-
)]
147-
#[OA\Patch(
148-
path: '/oauth2/auth',
149-
operationId: 'oauth2AuthorizePatch',
150-
summary: 'OAuth2 Authorization Endpoint (PATCH)',
151-
description: 'Initiates an OAuth2 authorization flow via PATCH. Same parameters as GET but sent as form data.',
152-
tags: ['OAuth2 / OpenID Connect'],
153-
requestBody: new OA\RequestBody(
154-
description: 'Authorization request parameters',
155-
required: true,
156-
content: new OA\MediaType(
157-
mediaType: 'application/x-www-form-urlencoded',
158-
schema: new OA\Schema(ref: '#/components/schemas/OAuth2AuthorizationRequest')
159-
)
160-
),
161-
responses: [
162-
new OA\Response(response: HttpResponse::HTTP_OK, description: 'Authorization request processed (response in body), depends on "response_mode" param'),
163-
new OA\Response(response: HttpResponse::HTTP_FOUND, description: 'Redirect to client redirect_uri with authorization code, tokens, or error'),
164-
new OA\Response(response: HttpResponse::HTTP_BAD_REQUEST, description: 'Bad Request', content: new OA\JsonContent(ref: '#/components/schemas/OAuth2ErrorResponse')),
165-
]
166-
)]
167-
#[OA\Delete(
168-
path: '/oauth2/auth',
169-
operationId: 'oauth2AuthorizeDelete',
170-
summary: 'OAuth2 Authorization Endpoint (DELETE)',
171-
description: 'Initiates an OAuth2 authorization flow via DELETE. Same parameters as GET but sent as form data.',
172-
tags: ['OAuth2 / OpenID Connect'],
173-
requestBody: new OA\RequestBody(
174-
description: 'Authorization request parameters',
175-
required: true,
176-
content: new OA\MediaType(
177-
mediaType: 'application/x-www-form-urlencoded',
178-
schema: new OA\Schema(ref: '#/components/schemas/OAuth2AuthorizationRequest')
179-
)
180-
),
181-
responses: [
182-
new OA\Response(response: HttpResponse::HTTP_OK, description: 'Authorization request processed (response in body), depends on "response_mode" param'),
183-
new OA\Response(response: HttpResponse::HTTP_FOUND, description: 'Redirect to client redirect_uri with authorization code, tokens, or error'),
184-
new OA\Response(response: HttpResponse::HTTP_BAD_REQUEST, description: 'Bad Request', content: new OA\JsonContent(ref: '#/components/schemas/OAuth2ErrorResponse')),
185-
]
186-
)]
187127
public function auth()
188128
{
189129
try {

0 commit comments

Comments
 (0)