Last active
October 19, 2015 07:40
-
-
Save LindaLawton/c19b53a7a86c9e4b0bc0 to your computer and use it in GitHub Desktop.
Creates the auth url
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
/// <summary> | |
/// Creates the auth url | |
/// https://accounts.google.com/o/oauth2/auth?client_id={clientid}&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope={scope}&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