mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-20 14:39:35 +02:00
Fix names for open api spec (#1582)
Names must not contain spaces, therefore we replace them with underscores.
This commit is contained in:
2
gradle/changelog/auth_names_open_api_spec.yaml
Normal file
2
gradle/changelog/auth_names_open_api_spec.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: fixed
|
||||
description: Authentication names in open api spec ([#1582](https://github.com/scm-manager/scm-manager/issues/1582))
|
||||
@@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
package sonia.scm.api.v2.resources;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
@@ -66,13 +66,13 @@ import java.util.Optional;
|
||||
|
||||
@SecuritySchemes({
|
||||
@SecurityScheme(
|
||||
name = "Basic Authentication",
|
||||
name = "Basic_Authentication",
|
||||
description = "HTTP Basic authentication with username and password",
|
||||
scheme = "basic",
|
||||
type = SecuritySchemeType.HTTP
|
||||
),
|
||||
@SecurityScheme(
|
||||
name = "Bearer Token Authentication",
|
||||
name = "Bearer_Token_Authentication",
|
||||
description = "Authentication with a jwt bearer token",
|
||||
scheme = "bearer",
|
||||
bearerFormat = "JWT",
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
package sonia.scm.api.v2.resources;
|
||||
|
||||
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
|
||||
@@ -41,8 +41,8 @@ import javax.ws.rs.Produces;
|
||||
|
||||
@OpenAPIDefinition(
|
||||
security = {
|
||||
@SecurityRequirement(name = "Basic Authentication"),
|
||||
@SecurityRequirement(name = "Bearer Token Authentication")
|
||||
@SecurityRequirement(name = "Basic_Authentication"),
|
||||
@SecurityRequirement(name = "Bearer_Token_Authentication")
|
||||
},
|
||||
tags = {
|
||||
@Tag(name = "Index", description = "SCM-Manager Index")
|
||||
|
||||
Reference in New Issue
Block a user