Created
March 4, 2014 14:36
-
-
Save joaomoreno/9347591 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string CreateAuthorizationCode() { | |
var service = new ManagementService("SERVICE_NAMESPACE", "SERVICE_USERNAME", "SERVICE_USERKEY"); | |
var delegation = service.CreateOAuth2Delegation("SERVICE_IDENTITY_NAME", "RELYING_PARTY_NAME", "USERNAME", "IDENTITY_PROVIDER"); | |
return delegation.AuthorizationCode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment