Deskmate
An enterprise assistant that reaches a second company app for the signed-in employee, through the identity provider that both trust, with no consent screen.
ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Scenario
An employee asks the assistant of the company chat tool: "What did the wiki say about the travel policy?" The wiki is a different application with its own authorization server. The company's identity provider already knows that the chat tool may read the wiki for employees. So the assistant gets a wiki token without sending the employee through a consent screen.
People and agents
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| Employee | Asks the assistant. | A user of organization A, the identity provider. |
| Deskmate | The assistant of the chat tool. | An application in organization A. |
| Wiki | The second application. | A resource in organization B, which trusts A. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Sign-in | The employee signs in to the chat tool. | Organization A issues an ID token. |
| Grant | Deskmate asks A for a grant for the wiki. | A checks its policy and issues an identity assertion grant. |
| Redeem | Deskmate sends the grant to B. | B verifies it, finds the employee by verified email, and issues an access token. |
| Read | Deskmate calls the wiki API. | The wiki verifies a token from its own authorization server. |
| Policy | An administrator removes the policy at A. | The next grant request is refused. |
Parts
| Part | Built with | Job |
|---|---|---|
| Assistant | Next.js, @lumoauth/nextjs | Chat, and the two token requests. |
| Wiki API | FastAPI | Verifies tokens of organization B. |
What the seed script creates
- Two organizations.
- At A: the identity-provider role, and a policy for the pair of applications.
- At B: the resource role, and A as a trusted identity provider.
- The same test employee in both, with a verified email.
Walkthrough
- Sign in as the employee.
- Ask the question, and read the two token requests in the panel.
- Remove the policy, and ask again.
Before you run it
- Check that your plan includes Cross App Access in the plans matrix.