Example #1
0
 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)
Example #2
0
 def _auth(self, backend):
     return do_auth(self.strategy)
Example #3
0
def auth(backend):
    return do_auth(g.strategy)
Example #4
0
def auth(request, backend):
    return do_auth(request.strategy, redirect_name=REDIRECT_FIELD_NAME)