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

test route now that plugin loads

parent 31bf6313
No related branches found
No related tags found
No related merge requests found
Pipeline #131144 passed
......@@ -27,15 +27,15 @@ 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')
async def authorize():
#@expose("/unity_authorize")
@app.route('/unity_authorize')
async def unity_authorize():
token = await oauth.unity.authorize_access_token()
user = await oauth.unity.userinfo(token=token)
# get relevant data from token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment