The groupfinder is only invoked on requests that check authentication 
information. For example a view with a "permission=..." constraint or when 
calling request.authenticated_userid, or request.has_permission(...). It is not 
invoked for every request.

- Michael

> On Dec 12, 2020, at 11:40, PremAnand Lakshmanan <prem1...@gmail.com> wrote:
> 
> I'm trying to implement authentication for my web application built using 
> Pyramid.
> 
> 
> Here is the code - 
> 
> https://github.com/PREM1980/spa_authentication 
> <https://github.com/PREM1980/spa_authentication>
> 
> I have a issue when the registered callback using AuthTktAuthenticationPolicy 
> is not being called.
> 
> 
> Here is the workflow of the application.
> 1. The user goes to the login URL.
> 2. He his redirected to a oauth callback(simulated here) and the remember 
> function is called to save the request.
> 3. Expect any future calls will call the registerd callback for 
> authorisation(implemented for resource_1 as a test)
> 
> Problem:-
> 
> The registered callback is not being called.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to pylons-discuss+unsubscr...@googlegroups.com 
> <mailto:pylons-discuss+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pylons-discuss/CAMpk0qPuOeMTtM8PGRm%3DhAxPwemLv55gz3tWNpw7n6jRtiwCgg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/pylons-discuss/CAMpk0qPuOeMTtM8PGRm%3DhAxPwemLv55gz3tWNpw7n6jRtiwCgg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/C741FFEF-DEC7-4AED-AC6E-C0CC58E6F891%40gmail.com.

Reply via email to