Skip to content
Snippets Groups Projects
Commit 9ae8e4c5 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

test expose instead of route

parent cefadfd8
No related branches found
No related tags found
No related merge requests found
Pipeline #130870 passed
......@@ -29,14 +29,14 @@ oauth.register(
)
class UnityIntegrationLoginView(AppBuilderBaseView):
#@expose("/unity_login")
@app.route('/unity_login')
@expose("/unity_login")
#@app.route('/unity_login')
def unity_login():
redirect_uri = url_for('unity_authorize', _external=True)
return oauth.unity.authorize_redirect(redirect_uri)
class UnityIntegrationAuthView(AppBuilderBaseView):
#@expose("/unity_authorize")
@app.route('/unity_authorize')
@expose("/unity_authorize")
#@app.route('/unity_authorize')
async def authorize():
token = await oauth.unity.authorize_access_token()
user = await oauth.unity.userinfo(token=token)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment