diff options
author | Dan <djr2468@gmail.com> | 2023-04-03 12:58:26 +0100 |
---|---|---|
committer | Dan <djr2468@gmail.com> | 2023-04-03 12:58:26 +0100 |
commit | 0fc695a4c1a09ef9d33ea2fd0658f6dece989381 (patch) | |
tree | 9b05a032c92c77bed0a69d8c58b36cb1fc01b073 /src/main/java/org/traccar/api/resource | |
parent | 954e03365f42f7ce3d72508d7ccaa0490ed1433c (diff) | |
download | trackermap-server-0fc695a4c1a09ef9d33ea2fd0658f6dece989381.tar.gz trackermap-server-0fc695a4c1a09ef9d33ea2fd0658f6dece989381.tar.bz2 trackermap-server-0fc695a4c1a09ef9d33ea2fd0658f6dece989381.zip |
Second pass
Diffstat (limited to 'src/main/java/org/traccar/api/resource')
-rw-r--r-- | src/main/java/org/traccar/api/resource/SessionResource.java | 4 |
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(); } } |