Skip to content

Commit ffb187b

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/Swagger/Security/OAuth2UserRegistrationRequestApiControllerSecurityScheme.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<?php namespace App\Swagger\schemas;
1+
<?php
2+
namespace App\Swagger\schemas;
23
/**
34
* Copyright 2025 OpenStack Foundation
45
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,8 +22,8 @@
2122
flows: [
2223
new OA\Flow(
2324
flow: 'authorizationCode',
24-
authorizationUrl: '/oauth2/auth',
25-
tokenUrl: '/oauth2/token',
25+
authorizationUrl: L5_SWAGGER_CONST_AUTH_URL,
26+
tokenUrl: L5_SWAGGER_CONST_TOKEN_URL,
2627
scopes: [
2728
IUserScopes::Registration => "User registration",
2829
]
@@ -31,4 +32,4 @@
3132
)]
3233
class OAuth2UserRegistrationRequestApiControllerSecurityScheme
3334
{
34-
}
35+
}

0 commit comments

Comments
 (0)