Authentication - masonbesmer/Abet-Course-Assessment-Tool-Backend GitHub Wiki
Authentication
Functionality
This class is for login authentication, It largely references Ldap and the token generator to do this in its primary function Login. Login Takes a request and assigns it to an EUID and Password string, verifies they aren't empty. Next, it checks the EUID for some strings that are associated with a role that is used for testing, if they match they are appended to the user roles for testing and then exit using this role. Not matching and Using Ldap it then verifies the imputed User and Pasowred to verify them. If successful it adds the appending roles from the results and sends the security token to login.
Variables & Functions
Variables
Private:
Ldap
ItokenGenerator
Functions
Authentication(ldap, tokenGenerator) - sets the Ldap, and tokenGenerator
Login(request) - the primary function of this class and is used to verify and login