Skip to content

Commit

Permalink
added method to get filled in oauth1signer
Browse files Browse the repository at this point in the history
  • Loading branch information
Derrickbowen committed Jul 23, 2015
1 parent 59ec5f7 commit 56556cd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-oauth1-client",
"version": "0.1.2",
"version": "0.1.8",
"authors": [
"[email protected]"
],
Expand Down
22 changes: 12 additions & 10 deletions dist/angular-oauth1-client.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
/*! angular-oauth1-client - v0.1.2 - 2015-07-22
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
/*! angular-oauth1-client - v0.1.2 - 2015-07-21
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
/*! angular-oauth1-client - v0.1.2 - 2015-07-09
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
/*! angular-oauth1-client - v0.1.2 - 2015-07-07
* Copyright (c) 2015 Sean Fisher; Licensed MIT */

/*! angular-oauth1-client - v0.1.2 - 2015-06-24
/*! angular-oauth1-client - v0.1.8 - 2015-07-23
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
(function(window, angular, undefined) {'use strict';

Expand Down Expand Up @@ -355,6 +346,17 @@ angular.module('oauth1Client', ['LocalStorageModule'])
}

return {
oAuthSigner: function(onCompletion) {
oauthPersistence.getTokenAndSecret(function (oauth_token, oauth_token_secret){
onCompletion(getOAuthSigner({
url : requestEndpoint,
consumerKey : consumerKey,
consumerSecret : consumerSecret,
token : oauth_token,
tokenSecret : oauth_token_secret
}));
});
},
authorize: function(afterWindowOpen, beforeWindowClose) {
var deffered = $q.defer();

Expand Down
4 changes: 2 additions & 2 deletions dist/angular-oauth1-client.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions src/angular-oauth1-client.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
/*! angular-oauth1-client - v0.1.2 - 2015-07-21
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
/*! angular-oauth1-client - v0.1.2 - 2015-07-09
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
/*! angular-oauth1-client - v0.1.2 - 2015-07-07
* Copyright (c) 2015 Sean Fisher; Licensed MIT */

/*! angular-oauth1-client - v0.1.2 - 2015-06-24
/*! angular-oauth1-client - v0.1.8 - 2015-07-23
* Copyright (c) 2015 Sean Fisher; Licensed MIT */
(function(window, angular, undefined) {'use strict';

Expand Down Expand Up @@ -353,6 +346,17 @@ angular.module('oauth1Client', ['LocalStorageModule'])
}

return {
oAuthSigner: function(onCompletion) {
oauthPersistence.getTokenAndSecret(function (oauth_token, oauth_token_secret){
onCompletion(getOAuthSigner({
url : requestEndpoint,
consumerKey : consumerKey,
consumerSecret : consumerSecret,
token : oauth_token,
tokenSecret : oauth_token_secret
}));
});
},
authorize: function(afterWindowOpen, beforeWindowClose) {
var deffered = $q.defer();

Expand Down

0 comments on commit 56556cd

Please sign in to comment.