Create an abstract authentication_contoller.rb class the works with some new services/authentication/ classes. We will need to build abstract code and token classes. Then create Cognito specific versions of those classes that we will use.
Convert the existing tokens_controller.rb so that it works with this new architecture.
We may need to build tables to store tokens/sessions.
Need to work with UI to determine how best to inform the frontend about:
That the user is new
The user has missing information (e.g. email, affiliation, etc.) that must be defined
That the user's session/token has expired
The user's auth failed
The user is an admin or super admin
Related to issue CDLUC3/dmsp_frontend_prototype#15 and issues dmsp_ui_prototype repo issues #4 and #5
Create an abstract
authentication_contoller.rb
class the works with some newservices/authentication/
classes. We will need to build abstractcode
andtoken
classes. Then create Cognito specific versions of those classes that we will use.Convert the existing
tokens_controller.rb
so that it works with this new architecture.We may need to build tables to store tokens/sessions.
Need to work with UI to determine how best to inform the frontend about:
Related to issue CDLUC3/dmsp_frontend_prototype#15 and issues dmsp_ui_prototype repo issues #4 and #5