Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 9b0aeb0

Browse files
authored
Merge pull request #46 from nicholasM95/develop
Develop
2 parents faaca6f + cc9f91a commit 9b0aeb0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>be.nicholasmeyers.vwgroup-connector</groupId>
77
<artifactId>vwgroup-connector</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.3.1-SNAPSHOT</version>
99

1010
<name>vwgroup-connector</name>
1111
<description>vwgroup-connector</description>

src/main/java/be/nicholasmeyers/vwgroupconnector/web/out/IdentityClientImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ public ConsentInfo ssoLogin(String client, StartAuthorization startAuthorization
155155

156156
Response response = identityClient.ssoLogin(headers, query);
157157
response.close();
158+
if (response.status() == 400) {
159+
throw new LoginException("Failed to log in (can't get the final authorization info). Please log in manually to a browser to authorize and accept the terms and conditions.");
160+
}
158161

159162
String location = getLocationHeader(response.headers());
160163
String hmac = location.substring(location.indexOf("hmac") + 5);

0 commit comments

Comments
 (0)