aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r--src/main/java/org/traccar/api/resource/SessionResource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/api/resource/SessionResource.java b/src/main/java/org/traccar/api/resource/SessionResource.java
index 3de20b8c7..a20e5f100 100644
--- a/src/main/java/org/traccar/api/resource/SessionResource.java
+++ b/src/main/java/org/traccar/api/resource/SessionResource.java
@@ -176,11 +176,11 @@ public class SessionResource extends BaseResource {
@PermitAll
@Path("openid/callback")
@GET
- public Response requestToken() throws IOException, StorageException, ParseException {
+ public Response requestToken() throws IOException, StorageException, ParseException, GeneralSecurityException {
StringBuilder requestUrl = new StringBuilder(request.getRequestURL().toString());
String queryString = request.getQueryString();
String requestUri = requestUrl.append('?').append(queryString).toString();
- return openIdProvider.handleCallback(URI.create(requestUri), request);
+ return Response.seeOther(openIdProvider.handleCallback(URI.create(requestUri), request)).build();
}
}