Version 1.0.5-rc22
This commit is contained in:
parent
2989a0b8f1
commit
aec12b3177
13 changed files with 171 additions and 44 deletions
|
|
@ -49,15 +49,11 @@ namespace test
|
|||
)
|
||||
{
|
||||
try {
|
||||
var r = new Uri(redirectUrl);
|
||||
var oauthor =new OAuthenticator( clientId, clientSecret, scope,
|
||||
new Uri( authorizeUrl) , new Uri(redirectUrl) , new Uri(accessTokenUrl));
|
||||
var query = new Dictionary<string,string>();
|
||||
query[Parameters.Username]=login;
|
||||
query[Parameters.Password]=pass;
|
||||
query[Parameters.ClientId]=clientId;
|
||||
query[Parameters.ClientSecret]=clientSecret;
|
||||
query[Parameters.Scope]=scope;
|
||||
query[Parameters.GrantType]=GrantTypes.Password;
|
||||
var result = await oauthor.RequestAccessTokenAsync(query);
|
||||
Console.WriteLine(">> Got an output");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue