Rameshwar Bhaskar
07/21/2023, 11:12 AMaliaspooryorik
aliaspooryorik
Rameshwar Bhaskar
07/21/2023, 11:20 AMaliaspooryorik
aliaspooryorik
aliaspooryorik
aliaspooryorik
Rameshwar Bhaskar
07/21/2023, 11:27 AMRameshwar Bhaskar
07/21/2023, 12:58 PMjwtAuth().attempt( rc.username, rc.password );
in login method and my UserService class has mockUsers i want to replace with mockuser exact the user class that has in databasealiaspooryorik
jwtAuth().attempt( rc.username, rc.password );
delegates to cbSecurity.getAuthService().authenticate( arguments.username, arguments.password );
which then passes it onto getUserService().isValidCredentials( arguments.username, arguments.password )
so whatever you implement as your isValidCredentials method is what it'll use.aliaspooryorik
Rameshwar Bhaskar
07/22/2023, 11:49 AM