File tree 4 files changed +10
-3
lines changed
4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export declare class OAuthService {
3
3
redirectUri : string ;
4
4
loginUrl : string ;
5
5
scope : string ;
6
+ resource : string ;
6
7
rngUrl : string ;
7
8
oidc : boolean ;
8
9
options : any ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ var OAuthService = (function () {
9
9
this . redirectUri = "" ;
10
10
this . loginUrl = "" ;
11
11
this . scope = "" ;
12
+ this . resource = "" ;
12
13
this . rngUrl = "" ;
13
14
this . oidc = false ;
14
15
this . state = "" ;
@@ -44,6 +45,8 @@ var OAuthService = (function () {
44
45
+ encodeURIComponent ( state )
45
46
+ "&redirect_uri="
46
47
+ encodeURIComponent ( that . redirectUri )
48
+ + "&resource="
49
+ + encodeURIComponent ( that . resource )
47
50
+ "&scope="
48
51
+ encodeURIComponent ( that . scope ) ;
49
52
if ( that . oidc ) {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export class OAuthService {
10
10
public redirectUri = "" ;
11
11
public loginUrl = "" ;
12
12
public scope = "" ;
13
+ public resource = "" ;
13
14
public rngUrl = "" ;
14
15
public oidc = false ;
15
16
public options : any ;
@@ -48,11 +49,13 @@ export class OAuthService {
48
49
+ "?response_type="
49
50
+ response_type
50
51
+ "&client_id="
51
- + encodeURIComponent ( that . clientId )
52
+ + encodeURIComponent ( that . clientId )
52
53
+ "&state="
53
- + encodeURIComponent ( state )
54
+ + encodeURIComponent ( state )
54
55
+ "&redirect_uri="
55
56
+ encodeURIComponent ( that . redirectUri )
57
+ + "&resource="
58
+ + encodeURIComponent ( that . resource )
56
59
+ "&scope="
57
60
+ encodeURIComponent ( that . scope ) ;
58
61
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular2-oauth2" ,
3
- "version" : " 1.3.10 " ,
3
+ "version" : " 1.3.11 " ,
4
4
"description" : " " ,
5
5
"main" : " oauth-service.js" ,
6
6
"author" : " Manfred Steyer (http://www.softwarearchitekt.at)" ,
You can’t perform that action at this time.
0 commit comments