mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
fixed authentication
This commit is contained in:
@@ -43,16 +43,15 @@ import java.util.Optional;
|
||||
@SecurityScheme(
|
||||
name = "Basic Authentication",
|
||||
description = "HTTP Basic authentication with username and password",
|
||||
scheme = "Basic",
|
||||
scheme = "basic",
|
||||
type = SecuritySchemeType.HTTP
|
||||
),
|
||||
@SecurityScheme(
|
||||
name = "Bearer Token Authentication",
|
||||
in = SecuritySchemeIn.HEADER,
|
||||
paramName = "Authorization",
|
||||
scheme = "Bearer",
|
||||
description = "Authentication with a jwt bearer token",
|
||||
scheme = "bearer",
|
||||
bearerFormat = "JWT",
|
||||
type = SecuritySchemeType.APIKEY
|
||||
type = SecuritySchemeType.HTTP
|
||||
)
|
||||
})
|
||||
@OpenAPIDefinition(tags = {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package sonia.scm.api.v2.resources;
|
||||
|
||||
import com.webcohesion.enunciate.metadata.rs.TypeHint;
|
||||
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.media.Content;
|
||||
|
||||
Reference in New Issue
Block a user