KEYCLOAK-1972 docs and export/import fixes for offline tokens. DB fixes

This commit is contained in:
mposolda committed 2015-10-16 19:09:52 +02:00
1 parent d13c120b6c
commit 9cc5ca3ce4
14 files changed
+40 -281

No files matched your search

@@ -98,6 +98,10 @@ public class OfflineAccessPortalServlet extends HttpServlet {
KeycloakDeployment deployment = getDeployment(req);
AccessTokenResponse response = ServerRequest.invokeRefresh(deployment, refreshToken);
accessToken = response.getToken();
// Uncomment this when you use revokeRefreshToken for realm. In that case each offline token can be used just once. So at this point, you need to
// save new offline token into DB
// RefreshTokenDAO.saveToken(response.getRefreshToken());
} catch (ServerRequest.HttpFailure failure) {
return "Failed to refresh token. Status from auth-server request: " + failure.getStatus() + ", Error: " + failure.getError();
}