Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'com.azure.spring:spring-cloud-azure-starter-active-directory'
implementation 'com.azure.spring:spring-cloud-azure-starter-actuator'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-api:2.7.0'
implementation "org.springframework:spring-aspects"
implementation 'javax.cache:cache-api:1.1.1'
implementation 'org.modelmapper:modelmapper:3.2.3'
Expand All @@ -93,6 +93,9 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
developmentOnly 'org.springframework.boot:spring-boot-devtools'

compileOnly "org.jspecify:jspecify:1.0.0"
annotationProcessor "org.jspecify:jspecify:1.0.0"

// Testing dependencies
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
Expand Down Expand Up @@ -163,7 +166,7 @@ openApiGenerate {
generateBuilders : "true",
useSpringBoot3 : "true",
useSpringController : "true",
useSwaggerUI : "true",
useSwaggerUI : "false",
hideGenerationTimestamp: "true"
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ SecurityFilterChain basicForProvisionDelete(HttpSecurity http) throws Exception
public SecurityFilterChain aadForEverythingElse(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests(request -> request
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**")
.requestMatchers(
"/api-docs/**",
"/v3/api-docs/**"
)
.permitAll()
.requestMatchers(
"/v1/message-definitions/**",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.opendevstack.component_provisioner.server.services;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.opendevstack.component_provisioner.config.ApplicationPropertiesConfiguration;
import org.opendevstack.component_provisioner.server.services.model.AzureTokenResponse;
import org.springframework.http.*;
Expand All @@ -10,6 +11,7 @@
import org.springframework.web.client.RestTemplate;

@Service
@Slf4j
@AllArgsConstructor
public class AzureAdTokenService {

Expand All @@ -32,6 +34,8 @@ public String getAccessToken(String clientId, String clientSecret, String scope)

var tokenRestUrl = azureAdTokenServiceProps.getUrl();

log.debug("Requesting Azure AD access token from URL: {} and body: {}", tokenRestUrl, body);

ResponseEntity<AzureTokenResponse> response =
restTemplate.postForEntity(
tokenRestUrl,
Expand Down
Binary file removed src/main/resources/public/swagger-boeh/boeh-logo.png
Binary file not shown.
19 changes: 0 additions & 19 deletions src/main/resources/public/swagger-boeh/index.html

This file was deleted.

Loading
Loading