Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Add extra data to RefreshAuthorization() method call of WebServerClient #305

Open
sam-leung opened this issue Sep 3, 2013 · 0 comments
Open

Comments

@sam-leung
Copy link

i'm trying to use the WebServerClient class of the DotNetOpenAuth to refresh my token. is there a way to pass additional data to the "RefreshAuthorization()" method call or to the request package/payload? i need to pass additional data to the server when requesting for a refresh of the token.

so i have currently:

string clientId = "something";
string clientSecret = "blah";

AuthorizationServerDescription authServer = new AuthorizationServerDescription()
{
    TokenEndpoint = new Uri(TOKEN_ENDPOINT),
    AuthorizationEndpoint = new Uri(AUTHZ_ENDPOINT),
};

var client = new WebServerClient( authServer, clientId, clientSecret );
IAuthorizationState state = client.ExchangeUserCredentialForToken( "username", "password" );
client.RefreshAuthorization(state);

thank you very much for your help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant