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()
128128 public string GenerateRequestPostData ( string code )
129129 {
130130 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 " ] ) ,
132132 HttpUtility . UrlEncode ( code ) ,
133133 ConfigurationManager . AppSettings [ "CallbackUrl" ]
134134 ) ;
@@ -137,7 +137,7 @@ public string GenerateRequestPostData(string code)
137137 public string GenerateRefreshPostData ( string refreshToken )
138138 {
139139 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 " ] ) ,
141141 HttpUtility . UrlEncode ( refreshToken ) ,
142142 ConfigurationManager . AppSettings [ "CallbackUrl" ]
143143 ) ;
Original file line number Diff line number Diff line change 1313 <!-- App Settings for OAuth-->
1414 <add key =" AppId" value =" " />
1515 <add key =" AppSecret" value =" " />
16+ <add key =" ClientSecret" value =" " />
1617 <add key =" Scope" value =" " />
1718 <add key =" AuthUrl" value =" https://app.vssps.visualstudio.com/oauth2/authorize" />
1819 <add key =" TokenUrl" value =" https://app.vssps.visualstudio.com/oauth2/token" />
You can’t perform that action at this time.
0 commit comments