22 lines
552 B
Java
22 lines
552 B
Java
package com.example.mtusi_messenger.config;
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
|
|
import io.swagger.v3.oas.annotations.security.SecurityScheme;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@SecurityScheme(
|
|
name = "basicAuth",
|
|
type = SecuritySchemeType.HTTP,
|
|
scheme = "basic"
|
|
)
|
|
@SecurityScheme(
|
|
name = "bearerAuth",
|
|
type = SecuritySchemeType.HTTP,
|
|
scheme = "bearer",
|
|
bearerFormat = "opaque session token"
|
|
)
|
|
@Configuration
|
|
public class OpenApiConfig {
|
|
}
|