Backend

Implements business logic.

Authentication FlowAuthentication Flow..person2... Frontend.. API Gateway.. Authentication Service.. Relational DatabaseOrdinary UserFrontendAPI GatewayAuthentication ServiceRelational DatabaseEnters credentialsSends request[REST]Routes request[OAuth2]Finds user byusername[SQL]Returns user, if found[SQL]Creates access tokenif credentials arevalid and useraccound is active,otherwise HTTP error401[OAuth2]Returns access token[REST]Displays user profileon success, otherwiseasks for credentialsagain
Authentication Flow