Forums

Steam Open-ID Login Redirect Error

So I am making a simple Flask website for my Garry's mod server so that players can link their steam account to our server. I am using the flask_openid module. Whenever the login function is called, I get a redirect error. <code>@app.route('/login')

@oid.loginhandler

def login():

   if g.user is not None:
        return redirect(oid.get_next_url())
   return oid.try_login("http://steamcommunity.com/openid")

Whenever the login function is called, I get a too many redirects error. I am currently using a free account and would like to upgrade to hacker, however, I want to get this working first. Any help is appreciated. Thanks!

What's oid.try_login? if it's trying to access an external site from within pythonanywhere (ie. not telling your user to redirect at the browser but instead trying to hit it from within your source code), then that's not going to work with a free account. That's because we limit external internet access to a whitelist. If you can show us documentation that the endpoint is a public api, we can whitelist it for you.

Here is a link for Steam's Open-ID proof.

oid.try_login () is a method within Flask's Open-ID library.

Okay- we've added steamcommunity.com to the whitelist for you!