aerogear / aerogear-android-sdk

AeroGear Services Android SDK
Apache License 2.0
8 stars 29 forks source link

Refresh tokens #292

Closed secondsun closed 6 years ago

secondsun commented 6 years ago

Motivation

This PR adds the ability to refresh tokens. Yay.

JIRA: https://issues.jboss.org/browse/AEROGEAR-7851

Description

When you are using KeyCloak the tokens expire. Now, the tokens automatically refresh!

To test this I used the data-sync-server and the memeolist applications. I edited a local keycloak instance to have access tokens expire after two mintues and confirmed that they went through the refresh flow after they expired.

Progress

wtrocki commented 6 years ago

@secondsun Basic on the demo I get that this resolvers problem completely. Requests do not fail as we do not have redirect anymore. We will need to connect this PR to epic

danielpassos commented 6 years ago

Tested locally and works like a charm. @secondsun Can you rebase and run ./gradlew spotlessApply

secondsun commented 6 years ago

@danielpassos rebased and cleaned