Skip to content

Instantly share code, notes, and snippets.

@LindaLawton
Last active October 19, 2015 07:40
Show Gist options
  • Save LindaLawton/c19b53a7a86c9e4b0bc0 to your computer and use it in GitHub Desktop.
Save LindaLawton/c19b53a7a86c9e4b0bc0 to your computer and use it in GitHub Desktop.
Creates the auth url
/// <summary>
/// Creates the auth url
/// https://accounts.google.com/o/oauth2/auth?client_id={clientid}&amp;redirect_uri=urn:ietf:wg:oauth:2.0:oob&amp;scope={scope}&amp;response_type=code
/// client id from google developer console.
/// scope comma seproated
/// </summary>
/// <returns></returns>
public static Uri GetAuthURI()
{
return new Uri(string.Format("https://accounts.google.com/o/oauth2/auth?client_id={0}&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope={1}&response_type=code", Properties.Resources.clientId, Properties.Resources.scope));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment