# Authentication
There are two flows to authenticate on chomp. Only one can be enabled at a time.
# Using chomp
This flow will slowly stop being used in production:
- It won't be deleted;
- It is usefull for the local develoment allowing to use chomp without frosty.
sequenceDiagram
participant C as Chomp
participant A as Account
C->>A: login
A->>A: create jumia account
A->>C: login success
C->>A: logout
A->>C: logout success
# Using frosty
Providing the configuration VUE_APP_FROSTY_URL
on chomp will enable this flow:
- Accessing chomp without being authenticated redirects to frosty;
- Logout on chomp redirects to frosty;
- It is not possible to access chomp homepage in any way.
- Clicking in the login button on frosty redirects to the Jumia Central Authentication. After a successfully login it will redirect to chomp.
- Clicking in the create business account button on frosty redirects to the Jumia Central Authentication. After a successfully login it will redirect to chomp to create the business.
sequenceDiagram
participant C as Chomp
participant F as Frosty
participant A as Account
C->>F: redirect when not authenticated
F->>A: login
F->>A: create business account needs to login first
A->>A: create jumia account
A->>C: login success
C->>C: create/connect business account
C->>A: logout
A->>F: logout success