Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Berke dberke711

View GitHub Profile
@dberke711
dberke711 / OAuthSample.cs
Created May 23, 2014
C# sample for getting a Concur OAuth token via native flow
View OAuthSample.cs
/// <summary>
/// Get a Concur OAuth token using the "Native Flow"
/// </summary>
/// <param name="loginID">Concur login ID of the user that is requesting the token</param>
/// <param name="password">Password for the specified user</param>
/// <param name="appKey">Application authorization key identifying the application that the token will access
/// (the "Key" field from the "New/Modify Partner Application" dialog box on the Web Services administration page.)</param>
/// <returns>Access token, good for one year.</returns>
public string GetOAuthToken(string loginID, string password, string appKey)
{