Inside the request.identity you should have the identifier and authenticator used to recognize the user, then it should be possible to take action based on that one.
On Tue, Nov 13, 2012 at 1:09 AM, ozwyzard <[email protected]> wrote: > Is there a way to allow/deny user based on predicate check depending on > the "type" of auth_ticket? > > For example, one instance of AuthTktCookiePlugin (NormalCookie) generates > cookie for normal login for normal users, versus a different instance of > AuthTktCookiePlugin generates cookie for OpenAuth2 email addresses > (OAuth2Cookie). Is there a way to specify a predicate which says, 'Allow > User with NormalCookie' but deny request with OAuth2Cookie? And Vice-Versa? > > I could differentiate based on tg_group membership (predicate). Just > wondering if there is any other way to do the same? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/turbogears/-/17UilFj9NyYJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

