def login(self, request): name, provider = self.locate_provider(request) settings = PSAStrategy.settings(request, self.providers, name) strategy = PSAStrategy(backend=provider, request=request, storage=None, redirect_uri=settings.get('REDIRECT_URI')) strategy.settings = settings do_auth(strategy)
def _auth(self, backend): return do_auth(self.strategy)
def auth(backend): return do_auth(g.strategy)
def auth(request, backend): return do_auth(request.strategy, redirect_name=REDIRECT_FIELD_NAME)