def get(self):
        """
        Login mechanism, using GET to redirect to SAML IDP.
        """
        if CRACK_CONF['auth']['type'] == 'saml2':
            self.reqid, info = self.saml_client.prepare_for_authenticate()
            redirect_url = None
            for key, value in info['headers']:
                if key == 'Location':
                    redirect_url = value
            response = redirect(redirect_url, code=302)
            return response
        else:
            return jsonify(ERR_METH_NOT), 405

        Login mechanism, using GET to redirect to SAML IDP.
        
crackq/cq_api.py