Getting an Access Token (and an Optional Refresh Token)

if (MicrosoftConnectOAuthRequest.HasRequestCode()) {
  MicrosoftConnectOAuthRequestBuilder builder = new MicrosoftConnectOAuthRequestBuilder(ClientKeyIdentifier, ClientSecret, <ReturnUrl>, ResponseType.Code, scopes);
  var response = builder.Build().GetResponse();
// Do something with response
} var authorizationRequestBuilder = new AuthorizationRequestBuilder(ClientKeyIdentifier, <ReturnUrl>, ResponseType.Code, scopes); var uri = authorizationRequestBuilder.Build().GenerateRequestUri()
// redirect to uri

Last edited Jul 18, 2011 at 1:42 PM by Jetski5822, version 2

Comments

No comments yet.