You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add user defined function to the token verification flow that receives the verification result and the callback. This function will be able to return customized data that will be attached to the token attribute instead of the current token's verification data.
More custom way is to pass the req object to this function in order to be able to attach user's defined attributes to the req object but it requires some fundamental changes in the implementation.
Adding this kind of operation will make the authentication process more customizable from user perspective and this support will be similar to passport's serialize\deserialize methods (e.g. in beforeCreateToken we can store user's id in attributes and in afterTokenVerified it will be possible to get the user from the database and attach to the request).
To support this it requires:
Be able to add afterTokenVerified to x-a127-services:oauth2:options in swagger.yaml.
Duplicate this check only with afterTokenVerified attribute.
Duplicate this only with afterTokenVerified attribute.
Hi,
Add user defined function to the token verification flow that receives the verification result and the callback. This function will be able to return customized data that will be attached to the token attribute instead of the current token's verification data.
More custom way is to pass the req object to this function in order to be able to attach user's defined attributes to the req object but it requires some fundamental changes in the implementation.
Adding this kind of operation will make the authentication process more customizable from user perspective and this support will be similar to passport's serialize\deserialize methods (e.g. in beforeCreateToken we can store user's id in attributes and in afterTokenVerified it will be possible to get the user from the database and attach to the request).
To support this it requires:
Thanks,
Boris
The text was updated successfully, but these errors were encountered: