okta-sdk-appauth-android icon indicating copy to clipboard operation
okta-sdk-appauth-android copied to clipboard

OktaAppAuth logout() method not working as expected

Open anoop-xrx opened this issue 6 years ago • 4 comments

public void logoutCurrentUser() {
    if (null != mOktaAuth && mOktaAuth.isUserLoggedIn()) {
        Log.e(TAG, "logoutCurrentUser: User logged out");
        mOktaAuth.logout();
    }
}

Steps to reproduce:

  1. Login to an OKTA account using login(context, positiveTarget, negativeTarget);
  2. logout the account using the logout() method;
  3. follow (1) again

On doing step 3, the OAuth browser is shown momentarily and then redirection to positiveTarget is done.

issue

anoop-xrx avatar Jan 21 '19 10:01 anoop-xrx

@anoop-xrx thanks for a feedback, we have merged new end session flow to master but it is still not released to maven central, we are working on it and it should be there soon.

For now you can try to build it locally and use it as a binary dependency.

smokienko avatar Jan 21 '19 10:01 smokienko

@smokienko Any timeline for the availability on Maven?

anoop-xrx avatar Jan 21 '19 12:01 anoop-xrx

@smokienko @nbarbettini Any updates when the 0.2.0 is going to be available via Maven?

anoop-xrx avatar Feb 01 '19 14:02 anoop-xrx

@anoop-xrx you can grab it from bintray as of yesterday ;) https://bintray.com/okta/com.okta.android/okta-sdk-appauth-android/0.2.0

bdemers avatar Feb 01 '19 14:02 bdemers