fixed authentication

This commit is contained in:
Sebastian Sdorra
2020-02-20 15:19:34 +01:00
parent 051e6f946f
commit c7bac50ff2
2 changed files with 4 additions and 6 deletions

View File

@@ -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 = {

View File

@@ -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;