Skip to content

Commit

Permalink
Development->master (#146)
Browse files Browse the repository at this point in the history
* Update login widget section in readme (#133)

* Updates Server endpoints to v4 (#135)

* Changes SDK to use server v4 endpoints. Updates test cases

* 1. Adds version and AZP validation 2. Updates iss validation

* Issue 2439 (#138)

Removed azp check

* update version to 6 (#140)

* Logout wrapper (#144)

* added a wrapper logout function in AppID class which calls AppIDAuthorizationManager's logout

* updated readme with the new AppID's logout wrapper
  • Loading branch information
rotembr authored Aug 21, 2019
1 parent 025e843 commit 9ef4868
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ AppID.getInstance().signinWithRefreshToken(getApplicationContext(), refreshToken
});
```

## Logout
```java
AppID.getInstance().logout();
```

## Manage User Profiles

Using the App ID UserProfileManager, you are able to create, delete, and retrieve user profile attributes as well as get additional info about a user.
Expand Down
7 changes: 7 additions & 0 deletions lib/src/main/java/com/ibm/cloud/appid/android/api/AppID.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,11 @@ public void signinWithRefreshToken(@NotNull Context context, @NotNull TokenRespo
signinWithRefreshToken(context, refreshTokenString, tokenResponseListener);
}

/**
* Wrapper for AppIDAuthorizationManager's logout
*/
public void logout() {
AppIDAuthorizationManager appIDAuthorizationManager = new AppIDAuthorizationManager(this);
appIDAuthorizationManager.logout(null, null);
}
}

0 comments on commit 9ef4868

Please sign in to comment.