def login():
    """ Log in to the app via OAuth through Canvas
    :methods: GET
    :responses:
        200:
            description: Route to callback for final authentication
        400:
            description: Bad request.
    """
    authorization_url, state = Auth.login()
    session["oauth_state"] = state

    return redirect(authorization_url)
Exemplo n.º 2
0
 def test_login_url(self):
     auth_url = Auth.login()
     self.assertIsNotNone(auth_url)
Exemplo n.º 3
0
 def test_login_tuple(self):
     auth_url = Auth.login()
     self.assertIsInstance(auth_url, object)