Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: README.md

Issue 1320523003: Make a bunch of API changes. (Closed) Base URL: git@github.com:dart-lang/oauth2.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: README.md
diff --git a/README.md b/README.md
index 23be5ff2047324bf4312934f7b6612152f3996b5..7e390cd4cbad2161384a263243a4602a9d46cb58 100644
--- a/README.md
+++ b/README.md
@@ -64,13 +64,15 @@ Future<oauth2.Client> getClient() async {
if (exists) {
var credentials = new oauth2.Credentials.fromJson(
await credentialsFile.readAsString());
- return new oauth2.Client(identifier, secret, credentials);
+ return new oauth2.Client(credentials,
+ identifier: identifier, secret: secret);
}
// If we don't have OAuth2 credentials yet, we need to get the resource owner
// to authorize us. We're assuming here that we're a command-line application.
var grant = new oauth2.AuthorizationCodeGrant(
- identifier, secret, authorizationEndpoint, tokenEndpoint);
+ identifier, authorizationEndpoint, tokenEndpoint,
+ secret: secret);
// Redirect the resource owner to the authorization URL. This will be a URL on
// the authorization server (authorizationEndpoint with some additional query
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/authorization_code_grant.dart » ('j') | lib/src/client.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698