# Build Github URL to OAuth service.
fun build_auth_redirect: String do
var url = "{auth_url}?client_id={client_id}&allow_signup={allow_signup}"
var redirect_uri = self.redirect_uri
if redirect_uri != null then url = "{url}&redirect_uri={redirect_uri}"
var scope = self.scope
if scope != null then url = "{url}&scope={scope}"
var state = self.state
if state != null then url = "{url}&state={state}"
return url
end
lib/popcorn/pop_auth.nit:123,2--133,4