-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed username + password authentication from docs
- Loading branch information
1 parent
cde6ff8
commit 3ec3791
Showing
1 changed file
with
1 addition
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ OAuthRepository oauthRepository = new OAuthRepositoryBuilder() | |
``` | ||
Example of `OAuthRepository` uses: | ||
|
||
**2.1 Browser OAuth Flow** | ||
**Browser OAuth Flow** | ||
|
||
**In your Manifest:** | ||
|
||
|
@@ -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 | ||
--- | ||
|
||
|