Sign-in with an identity provider
A browser, the app, and an identity provider. autonumber prints a step number on each message so a design doc can refer to step 4.
sequenceDiagram
autonumber
actor User
participant App
participant IdP as Identity provider
User->>App: Click Sign in
App->>IdP: Authorization request
IdP-->>User: Login page
User->>IdP: Submit credentials
IdP-->>App: Authorization code
App->>IdP: Exchange the code
IdP-->>App: Access token
App-->>User: Signed-in session