0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-24 22:41:28 -05:00
logto/.changeset/six-pens-hope.md
simeng-li 32df9acde3
chore: add changeset files for IdP feature (#5380)
* chore: add changeset files for IdP feature

add changeset files for IdP feature

* refactor: apply suggestions from code review

---------

Co-authored-by: Gao Sun <gao@silverhand.io>
2024-02-08 03:13:24 +00:00

1.6 KiB

@logto/core
minor

implement Logto core API to support the new third-party application feature, and user consent interaction flow

Management API

  • Add new endpoint /applications/sign-in-experiences with PUT, GET methods to manage the application level sign-in experiences.
  • Add new endpoint /applications/:id/users/:userId/consent-organizations with PUT, GET, POST, DELETE methods to manage the user granted organizations for the third-party application.
  • Add new endpoint /applications/:id/user-consent-scopes with GET, POST, DELETE methods to manage the user consent resource, organization, and user scopes for the third-party application.
  • Update the /applications endpoint to include the new is_third_party field. Support create third-party applications, and query by is_third_party field.

Interaction API

  • Add the koaAutoConsent to support the auto-consent interaction flow for the first-party application. If is the first-party application we can auto-consent the requested scopes. If is the third-party application we need to redirect the user to the consent page to get the user consent manually.
  • Add the GET /interaction/consent endpoint to support fetching the consent context for the user consent page. Including the application detail, authenticated user info, all the requested scopes and user organizations info (if requested scopes include the organization scope).
  • Update the POST /interaction/consent endpoint to support the user consent interaction flow. Including grant all the missing scopes, and update the user granted organizations for the third-party application.