Pyramid authentication callback not being called

29 views
Skip to first unread message

PremAnand Lakshmanan

unread,
Dec 12, 2020, 6:16:15 PM12/12/20
to pylons-...@googlegroups.com
I'm trying to implement authentication for my web application built using Pyramid.


Here is the code -

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.


Michael Merickel

unread,
Dec 13, 2020, 5:43:56 PM12/13/20
to pylons-...@googlegroups.com
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

--
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-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAMpk0qPuOeMTtM8PGRm%3DhAxPwemLv55gz3tWNpw7n6jRtiwCgg%40mail.gmail.com.

prem anand lakshmanan

unread,
Dec 14, 2020, 8:48:10 AM12/14/20
to pylons-discuss
Thanks, it worked.
Reply all
Reply to author
Forward
0 new messages