Skip to content

merge user/current/logins and user/current/login-providers#16307

Merged
iOvergaard merged 1 commit intov14/devfrom
v14/fix/merge-user-logins-endpoints
May 17, 2024
Merged

merge user/current/logins and user/current/login-providers#16307
iOvergaard merged 1 commit intov14/devfrom
v14/fix/merge-user-logins-endpoints

Conversation

@Migaroez
Copy link
Contributor

@Migaroez Migaroez commented May 16, 2024

Prerequisites

  • I have added steps to test this contribution in the description below

Description

There are currently 2 endpoints that return information about login providers.

  • the actual linked logins at /user/current/logins
  • and the list of possible providers with status at /user/current/login-providers

Since our DB model only supports 1 login per provider per user, we can merge these endpoints reducing a call by the frontend.

Also deleted an unused request model.

Breaking information

Removing the /user/current/logins is technically breaking between the RC's but since this endpoint is most likely not used by implementors, it is considered safe to remove.

Testing

  • Configure one more more external login providers
  • Check they all still show up in the login-providers endpoint
  • Login or link with a provider
  • Check whether the login-providers endpoint shows the update information including the providerkey

Copy link
Contributor

@iOvergaard iOvergaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it out and it works well!

@iOvergaard iOvergaard added release/14.0.0-rc4 and removed project/bellissima AKA "the new backoffice" labels May 17, 2024
@iOvergaard iOvergaard merged commit 56e0e1c into v14/dev May 17, 2024
@iOvergaard iOvergaard deleted the v14/fix/merge-user-logins-endpoints branch May 17, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants