events

pyramid_fullauth emits these events during whole cycle.

Registration

class pyramid_fullauth.events.BeforeRegister(request, user, errors)[source]

Execute custom code at the start of registration process.

Note

User object is not yet in session.

Initialize event.

Parameters:
class pyramid_fullauth.events.AfterRegister(request, user, response_values)[source]

Add custom post-processing code in registration process.

Can be used to add e.g. e-mail sending with registration links.

Note

User object is already in a session.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Warning

If HTTPFound is risen from event listener, then response_values will not be used!

Initialize event.

Parameters:

Account activation

class pyramid_fullauth.events.AfterActivate(request, user)[source]

Add custom post-processing logic after user gets activated.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize event.

Parameters:

Password reset

class pyramid_fullauth.events.AfterResetRequest(request, user)[source]

Add custom post-processing after user sends request to reset password.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize event.

Parameters:
class pyramid_fullauth.events.AfterReset(request, user)[source]

Add custom post-processing after the actual reset-password process.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize event.

Parameters:

Login

class pyramid_fullauth.events.AlreadyLoggedIn(request)[source]

Allow execute custom logic, when logged in user tries to log in again.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize event.

Parameters:request (pyramid.request.Request) – request object
class pyramid_fullauth.events.BeforeLogIn(request, user)[source]

Add custom logic before user gets logged in.

Note

Action emitting this event, should catch all AttributeError that might be risen in event listener. User param set to None when user is not found or request method is GET.

Initialize event.

Parameters:
class pyramid_fullauth.events.AfterLogIn(request, user)[source]

Add custom logic after user logs in.

Initialize event.

Parameters:

Social registration/login

class pyramid_fullauth.events.BeforeSocialRegister(request, user, profile)[source]

Adds custom logic before the social login process start.

Initialize base events.

Parameters:
class pyramid_fullauth.events.AfterSocialRegister(request, user, profile, response_values)[source]

Add custom logic after user registers through social network.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize event.

Parameters:
class pyramid_fullauth.events.AfterSocialLogIn(request, user, profile)[source]

Custom logic after user logs in through social network.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize base events.

Parameters:
class pyramid_fullauth.events.SocialAccountAlreadyConnected(request, user, profile, response_values)[source]

Allow to add custom logic, when someone tries to connect social account to second user in application.

Note

Action emitting this event, should catch all HTTPFound that might be risen in event listener.

Initialize event.

Parameters:

Table Of Contents

Previous topic

auth

Next topic

exceptions

This Page