springfox.documentation.swagger.web.SecurityConfigurationBuilder Java Examples

The following examples show how to use springfox.documentation.swagger.web.SecurityConfigurationBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OnrampSwaggerConfiguration.java    From data-highway with Apache License 2.0 5 votes vote down vote up
@Bean
@Primary
SecurityConfiguration onrampSecurity() {
  return SecurityConfigurationBuilder
      .builder()
      .realm("Data Highway")
      .appName("onramp")
      .scopeSeparator(",")
      .additionalQueryStringParams(null)
      .useBasicAuthenticationWithAccessCodeGrant(false)
      .build();
}
 
Example #2
Source File: PaverSwaggerConfiguration.java    From data-highway with Apache License 2.0 5 votes vote down vote up
@Bean
@Lazy
SecurityConfiguration paverSecurity() {
  return SecurityConfigurationBuilder
      .builder()
      .realm("Data Highway")
      .appName("paver")
      .scopeSeparator(",")
      .additionalQueryStringParams(null)
      .useBasicAuthenticationWithAccessCodeGrant(false)
      .build();
}
 
Example #3
Source File: SwaggerSecurityHandler.java    From SpringBlade with Apache License 2.0 5 votes vote down vote up
/**
 * Handle the given request.
 *
 * @param request the request to handler
 * @return the response
 */
@Override
public Mono<ServerResponse> handle(ServerRequest request) {
	return ServerResponse.status(HttpStatus.OK)
		.contentType(MediaType.APPLICATION_JSON)
		.body(BodyInserters.fromValue(SecurityConfigurationBuilder.builder().build()));
}
 
Example #4
Source File: SwaggerConfiguration.java    From halo with GNU General Public License v3.0 5 votes vote down vote up
@Bean
SecurityConfiguration security() {
    return SecurityConfigurationBuilder.builder()
        .clientId("halo-app-client-id")
        .clientSecret("halo-app-client-secret")
        .realm("halo-app-realm")
        .appName("halo-app")
        .scopeSeparator(",")
        .additionalQueryStringParams(null)
        .useBasicAuthenticationWithAccessCodeGrant(false)
        .build();
}
 
Example #5
Source File: SwaggerConfig.java    From spring-security-oauth with MIT License 5 votes vote down vote up
@Bean
public SecurityConfiguration security() {
    return SecurityConfigurationBuilder.builder()
    		.clientId(CLIENT_ID)
    		.clientSecret(CLIENT_SECRET)
    		.useBasicAuthenticationWithAccessCodeGrant(true)
    		.build();
}
 
Example #6
Source File: SwaggerHandler.java    From open-capacity-platform with Apache License 2.0 4 votes vote down vote up
@GetMapping("/configuration/security")
public Mono<ResponseEntity<SecurityConfiguration>> securityConfiguration() {
    return Mono.just(new ResponseEntity<>(
            Optional.ofNullable(securityConfiguration).orElse(SecurityConfigurationBuilder.builder().build()), HttpStatus.OK));
}
 
Example #7
Source File: SwaggerHandler.java    From microservices-platform with Apache License 2.0 4 votes vote down vote up
@GetMapping("/configuration/security" )
public Mono<ResponseEntity<SecurityConfiguration>> securityConfiguration() {
    return Mono.just(new ResponseEntity<>(
            Optional.ofNullable(securityConfiguration).orElse(SecurityConfigurationBuilder.builder().build()), HttpStatus.OK));
}
 
Example #8
Source File: SwaggerHandler.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
@GetMapping("/configuration/security")
public Mono<ResponseEntity<SecurityConfiguration>> securityConfiguration() {
    return Mono.just(new ResponseEntity<>(
            Optional.ofNullable(securityConfiguration).orElse(SecurityConfigurationBuilder.builder().build()), HttpStatus.OK));
}
 
Example #9
Source File: SwaggerHandler.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
@GetMapping("/configuration/security")
public Mono<ResponseEntity<SecurityConfiguration>> securityConfiguration() {
    return Mono.just(new ResponseEntity<>(
            Optional.ofNullable(securityConfiguration).orElse(SecurityConfigurationBuilder.builder().build()), HttpStatus.OK));
}
 
Example #10
Source File: SwaggerHandler.java    From sophia_scaffolding with Apache License 2.0 4 votes vote down vote up
@GetMapping("/configuration/security")
public Mono<ResponseEntity<SecurityConfiguration>> securityConfiguration() {
    return Mono.just(new ResponseEntity<>(
            Optional.ofNullable(securityConfiguration).orElse(SecurityConfigurationBuilder.builder().build()), HttpStatus.OK));
}
 
Example #11
Source File: SwaggerHandler.java    From black-shop with Apache License 2.0 4 votes vote down vote up
@GetMapping("/swagger-resources/configuration/security")
public Mono<ResponseEntity<SecurityConfiguration>> securityConfiguration() {
	return Mono.just(new ResponseEntity<>(
			Optional.ofNullable(securityConfiguration).orElse(SecurityConfigurationBuilder.builder().build()), HttpStatus.OK));
}