diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py index 0e15dc679275a1506bf7158fcc5e14e0e13b11a1..805d6571b0666d436af6f1c24b0fedeb6cc469fd 100644 --- a/plugins/unity_integration.py +++ b/plugins/unity_integration.py @@ -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)