From 86a4103adff0dfd48354bdda152a2e9adfae0cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de> Date: Mon, 6 Mar 2023 09:57:15 +0100 Subject: [PATCH] test route now that plugin loads --- plugins/unity_integration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py index 86cd616..210af5a 100644 --- a/plugins/unity_integration.py +++ b/plugins/unity_integration.py @@ -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 -- GitLab