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 2:42 PM by Jetski5822, version 2


No comments yet.