// ConfigGetAuthCodeUrl returns a URL to OAuth 2.0 provider's consent page
// that asks for permissions for the required scopes explicitly.
//
// State is a token to protect the user from CSRF attacks. You must
// always provide a non-empty string and validate that it matches the
// the state query parameter on your redirect callback.
// See http://tools.ietf.org/html/rfc6749#section-10.12 for more info.
//
// online may include true for AccessTypeOnline or false for AccessTypeOffline, as well
// as ApprovalForce.
ConfigGetAuthCodeUrl returns a URL to OAuth 2.0 provider's consent page
that asks for permissions for the required scopes explicitly.

State is a token to protect the user from CSRF attacks. You must
always provide a non-empty string and validate that it matches the
the state query parameter on your redirect callback.

online may include true for AccessTypeOnline or false for AccessTypeOffline, as well
as ApprovalForce.
// ConfigGetAuthCodeUrl returns a URL to OAuth 2 . 0 provider ' s consent page // that asks for permissions for the required scopes explicitly . // // State is a token to protect the user from CSRF attacks . You must // always provide a non - empty string and validate that it matches the // the state query parameter on your redirect callback . // See http : // tools . ietf . org / html / rfc6749#section - 10 . 12 for more info . // // online may include true for AccessTypeOnline or false for AccessTypeOffline as well // as ApprovalForce .
func ConfigGetAuthCodeUrl(oa *oauth2.Config, state string, online bool) string {
	if online {
		return oa.AuthCodeURL(state, oauth2.AccessTypeOnline)
	}
	return oa.AuthCodeURL(state, oauth2.AccessTypeOffline)
}
func ConfigGetAuthCodeUrl ( oa * oauth2 . Config , state string , online bool ) string { if online { return oa . AuthCodeURL ( state , oauth2 . AccessTypeOnline ) } return oa . AuthCodeURL ( state , oauth2 . AccessTypeOffline ) }
ConfigGetAuthCodeUrl returns a URL to OAuth 2.0 provider's consent page
that asks for permissions for the required scopes explicitly.
ConfigGetAuthCodeUrl returns a URL to OAuth 2 . 0 provider ' s consent page that asks for permissions for the required scopes explicitly .