Skip to content

Commit 396c732

Browse files
fix: Update OAuth2UserApiController security scheme to use constants for URLs
Signed-off-by: matiasperrone-exo <[email protected]>
1 parent bba5793 commit 396c732

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

app/Swagger/Security/UsersOAuth2Schema.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
#[
99
OA\SecurityScheme(
10-
type: 'oauth2',
11-
securityScheme: 'user_oauth2',
12-
flows: [
13-
new OA\Flow(
14-
flow: 'authorizationCode',
15-
authorizationUrl: '/oauth2/auth',
16-
tokenUrl: '/oauth2/token',
17-
scopes: [
18-
IUserScopes::ReadAll => 'Read All Users Data',
19-
],
20-
),
21-
],
22-
)
10+
type: 'oauth2',
11+
securityScheme: 'user_oauth2',
12+
flows: [
13+
new OA\Flow(
14+
flow: 'authorizationCode',
15+
authorizationUrl: L5_SWAGGER_CONST_AUTH_URL,
16+
tokenUrl: L5_SWAGGER_CONST_TOKEN_URL,
17+
scopes: [
18+
IUserScopes::ReadAll => 'Read All Users Data',
19+
],
20+
),
21+
],
22+
)
2323
]
2424
class UsersOAuth2Schema
2525
{
26-
}
26+
}

0 commit comments

Comments
 (0)