Skip to content

Commit 5955852

Browse files
Bump to v0.3.0
2 parents 846c660 + 73fa404 commit 5955852

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## 0.2.9 (August 27, 2014)
3+
## 0.3.0 (October 30, 2014)
44

5+
* Solved bug on access token definition from hash
56
* Correctly running tests with E2E protractor
67

78
## 0.2.8 (August 27, 2014)

app/scripts/services/access-token.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
2525
* - takes the token from the sessionStorage
2626
*/
2727
service.set = function(){
28-
setTokenFromString($location.hash());
28+
this.setTokenFromString($location.hash());
2929

3030
//If hash is present in URL always use it, cuz its coming from oAuth2 provider redirect
3131
if(null === service.token){
@@ -54,15 +54,11 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
5454
};
5555

5656

57-
/* * * * * * * * * *
58-
* PRIVATE METHODS *
59-
* * * * * * * * * */
60-
6157
/**
6258
* Get the access token from a string and save it
6359
* @param hash
6460
*/
65-
var setTokenFromString = function(hash){
61+
service.setTokenFromString = function(hash){
6662
var params = getTokenFromString(hash);
6763

6864
if(params){
@@ -73,6 +69,11 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
7369
}
7470
};
7571

72+
73+
/* * * * * * * * * *
74+
* PRIVATE METHODS *
75+
* * * * * * * * * */
76+
7677
/**
7778
* Set the access token from the sessionStorage.
7879
*/

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oauth-ng",
3-
"version": "0.2.9",
3+
"version": "0.3.0",
44
"main": [
55
"dist/oauth-ng.js",
66
"dist/views/templates/default"

dist/oauth-ng.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* oauth-ng - v0.2.8 - 2014-10-26 */
1+
/* oauth-ng - v0.3.0 - 2014-10-30 */
22

33
'use strict';
44

@@ -43,7 +43,7 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
4343
* - takes the token from the sessionStorage
4444
*/
4545
service.set = function(){
46-
setTokenFromString($location.path().substr(1));
46+
this.setTokenFromString($location.hash());
4747

4848
//If hash is present in URL always use it, cuz its coming from oAuth2 provider redirect
4949
if(null === service.token){
@@ -72,15 +72,11 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
7272
};
7373

7474

75-
/* * * * * * * * * *
76-
* PRIVATE METHODS *
77-
* * * * * * * * * */
78-
7975
/**
8076
* Get the access token from a string and save it
8177
* @param hash
8278
*/
83-
var setTokenFromString = function(hash){
79+
service.setTokenFromString = function(hash){
8480
var params = getTokenFromString(hash);
8581

8682
if(params){
@@ -91,6 +87,11 @@ accessTokenService.factory('AccessToken', function($rootScope, $location, $sessi
9187
}
9288
};
9389

90+
91+
/* * * * * * * * * *
92+
* PRIVATE METHODS *
93+
* * * * * * * * * */
94+
9495
/**
9596
* Set the access token from the sessionStorage.
9697
*/

0 commit comments

Comments
 (0)