Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Pass SakuraAPI instance to various hook functions #19

Open
8 tasks
etsuo opened this issue Nov 22, 2017 · 0 comments
Open
8 tasks

Pass SakuraAPI instance to various hook functions #19

etsuo opened this issue Nov 22, 2017 · 0 comments
Milestone

Comments

@etsuo
Copy link
Member

etsuo commented Nov 22, 2017

functions called by AuthNativeAuthority may not have local access to an instance of SakuraAPI. This should be passed as a parameter.

It might be good to have a parameter called meta that includes SakuraAPI, but might also include other things the implementer might want access too when these hooks are called. This could be declared in the plugin initialization.

Hooks

  • onBeforeUserCreate
  • onChangePasswordEmailRequest
  • onForgotPasswordEmailRequest
  • onJWTPayloadInject
  • onLoginSuccess
  • onResendEmailConfirmation
  • onInjectCustomToken
  • onUserCreated
@etsuo etsuo added this to the 0.3.0 milestone Nov 22, 2017
@etsuo etsuo modified the milestones: 0.3.0, 0.4.0 Mar 28, 2018
@etsuo etsuo modified the milestones: 0.4.0, 0.5.0 Jul 3, 2018
@etsuo etsuo modified the milestones: 0.5.0, next Aug 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant