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