Skip to content

Commit a4e9256

Browse files
fix: Update OAuth2UserApiController security scheme to use constants for URLs
Signed-off-by: matiasperrone-exo <matias.perrone@exomindset.co>
1 parent 1e37e84 commit a4e9256

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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)