Skip to content

Commit

Permalink
new type of auth error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Oct 10, 2023
1 parent 5ab680b commit ea601cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
4 changes: 2 additions & 2 deletions integrator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies {
compile group: 'org.ict4h', name: 'atomfeed-spring-server', version: '1.9.4'
implementation platform('software.amazon.awssdk:bom:2.15.0')
implementation 'software.amazon.awssdk:cognitoidentity'
implementation 'com.bugsnag:bugsnag-spring:3.+'
implementation 'com.bugsnag:bugsnag-spring:3.6.4'

runtimeOnly group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'

Expand All @@ -65,7 +65,7 @@ dependencies {

compile "org.javatuples:javatuples:1.2"

implementation 'com.bugsnag:bugsnag-spring:3.+'
implementation 'com.bugsnag:bugsnag-spring:3.6.4'

implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-test'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ private <T> ResponseEntity<T> getResponseEntity(Class<T> returnType, URI uri, Ht
return restTemplate.exchange(uri, method, getRequestEntity(json), returnType);
}
throw e;
} catch (org.springframework.web.client.HttpClientErrorException.Unauthorized e) {
this.clearAuthInformation();
return restTemplate.exchange(uri, method, getRequestEntity(json), returnType);
}
}

Expand Down

0 comments on commit ea601cb

Please sign in to comment.