File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
OAuthWebSample/OAuthWebSample Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public String GenerateAuthorizeUrl()
128
128
public string GenerateRequestPostData ( string code )
129
129
{
130
130
return string . Format ( "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion={0}&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion={1}&redirect_uri={2}" ,
131
- HttpUtility . UrlEncode ( ConfigurationManager . AppSettings [ "AppSecret " ] ) ,
131
+ HttpUtility . UrlEncode ( ConfigurationManager . AppSettings [ "ClientSecret " ] ) ,
132
132
HttpUtility . UrlEncode ( code ) ,
133
133
ConfigurationManager . AppSettings [ "CallbackUrl" ]
134
134
) ;
@@ -137,7 +137,7 @@ public string GenerateRequestPostData(string code)
137
137
public string GenerateRefreshPostData ( string refreshToken )
138
138
{
139
139
return string . Format ( "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&client_assertion={0}&grant_type=refresh_token&assertion={1}&redirect_uri={2}" ,
140
- HttpUtility . UrlEncode ( ConfigurationManager . AppSettings [ "AppSecret " ] ) ,
140
+ HttpUtility . UrlEncode ( ConfigurationManager . AppSettings [ "ClientSecret " ] ) ,
141
141
HttpUtility . UrlEncode ( refreshToken ) ,
142
142
ConfigurationManager . AppSettings [ "CallbackUrl" ]
143
143
) ;
Original file line number Diff line number Diff line change 13
13
<!-- App Settings for OAuth-->
14
14
<add key =" AppId" value =" " />
15
15
<add key =" AppSecret" value =" " />
16
+ <add key =" ClientSecret" value =" " />
16
17
<add key =" Scope" value =" " />
17
18
<add key =" AuthUrl" value =" https://app.vssps.visualstudio.com/oauth2/authorize" />
18
19
<add key =" TokenUrl" value =" https://app.vssps.visualstudio.com/oauth2/token" />
You can’t perform that action at this time.
0 commit comments