File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
streampipes-service-core/src/main/java/org/apache/streampipes/service/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 25
25
import io .swagger .v3 .oas .models .info .License ;
26
26
import io .swagger .v3 .oas .models .media .Schema ;
27
27
import io .swagger .v3 .oas .models .parameters .Parameter ;
28
+ import io .swagger .v3 .oas .models .security .SecurityRequirement ;
28
29
import io .swagger .v3 .oas .models .security .SecurityScheme ;
29
30
import org .springframework .beans .factory .annotation .Value ;
30
31
import org .springframework .context .annotation .Bean ;
@@ -42,8 +43,9 @@ public OpenAPI openApiDocsConfiguration(@Value("${app.version}") String appVersi
42
43
return new OpenAPI ()
43
44
.components (new Components ()
44
45
.addSecuritySchemes ("bearerAuth" ,
45
- new SecurityScheme ().type (SecurityScheme .Type .HTTP ).scheme ("bearer" ))
46
+ new SecurityScheme ().type (SecurityScheme .Type .HTTP ).scheme ("bearer" ). bearerFormat ( "JWT" ) )
46
47
.parameters (makeAuthParams ()))
48
+ .addSecurityItem (new SecurityRequirement ().addList ("bearerAuth" ))
47
49
.info (new Info ()
48
50
.title ("Apache StreamPipes API" )
49
51
.description ("This is the documentation of the Apache StreamPipes developer API." )
You can’t perform that action at this time.
0 commit comments