Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
Removed username + password authentication from docs
  • Loading branch information
andreidiaconu authored Mar 29, 2017
1 parent cde6ff8 commit 3ec3791
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ OAuthRepository oauthRepository = new OAuthRepositoryBuilder()
```
Example of `OAuthRepository` uses:

**2.1 Browser OAuth Flow**
**Browser OAuth Flow**

**In your Manifest:**

Expand Down Expand Up @@ -156,34 +156,6 @@ if (uri!=null) {
}
```

**2.2 Password authentication flow**

Attention: EMAIL and PASSWORD need to be user credentials.

```
oauthRepository.authorize("[email protected]", "password", new ResponseCallback<UserAccessToken>() {
@Override
public void onSuccess(UserAccessToken response) {
//Success if response code is [200...300], e.g.
Toast.makeText(MainActivity.this, response.getToken(), Toast
.LENGTH_SHORT).show();
}
@Override
public void onServerError(ErrorResponse errorResponse) {
//Server Error if response code is different than [200...300]
}
@Override
public void onError(String message) {
//Error if something goes wrong (not form server) e.g. lost internet connection
}
});
```

3. UserRepository
---

Expand Down

0 comments on commit 3ec3791

Please sign in to comment.