Skip to main content

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.
Works with
JavaScript / TypeScriptPythonNext.jsFastAPI
Stack
Next.js assistant, FastAPI wiki API, two organizations

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​

WhoRole in the applicationIdentity in LumoAuth
EmployeeAsks the assistant.A user of organization A, the identity provider.
DeskmateThe assistant of the chat tool.An application in organization A.
WikiThe second application.A resource in organization B, which trusts A.

Flows​

FlowWhat happensWhat LumoAuth does
Sign-inThe employee signs in to the chat tool.Organization A issues an ID token.
GrantDeskmate asks A for a grant for the wiki.A checks its policy and issues an identity assertion grant.
RedeemDeskmate sends the grant to B.B verifies it, finds the employee by verified email, and issues an access token.
ReadDeskmate calls the wiki API.The wiki verifies a token from its own authorization server.
PolicyAn administrator removes the policy at A.The next grant request is refused.

Parts​

PartBuilt withJob
AssistantNext.js, @lumoauth/nextjsChat, and the two token requests.
Wiki APIFastAPIVerifies 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​

  1. Sign in as the employee.
  2. Ask the question, and read the two token requests in the panel.
  3. Remove the policy, and ask again.

Before you run it​

  • Check that your plan includes Cross App Access in the plans matrix.