mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #261] [MERGED] [Plugins] [Auth] [oauth2] Support identity platforms with underlying IDPs #186
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/261
Author: @Blond11516
Created: 10/4/2025
Status: ✅ Merged
Merged: 10/18/2025
Merged by: @gschier
Base:
main← Head:plugin/auth-oauth2/support-identity-platform-with-idp📝 Commits (4)
6ee8ce6[plugin/oauth2] Support identity platforms authenticating through other IDPs3de1f81Merge branch 'main' into plugin/auth-oauth2/support-identity-platform-with-idp5bbb1eeBetter redirect matching9146879Catch another edge case📊 Changes
5 files changed (+200 additions, -22 deletions)
View changed files
📝
plugins/auth-oauth2/package.json(+2 -1)📝
plugins/auth-oauth2/src/grants/authorizationCode.ts(+8 -9)📝
plugins/auth-oauth2/src/index.ts(+1 -12)📝
plugins/auth-oauth2/src/util.ts(+80 -0)➕
plugins/auth-oauth2/tests/util.test.ts(+109 -0)📄 Description
When using an identity platform (such as AWS Cognito) authenticating through another IDP (such as Google) with OAuth 2, Yaak's OAuth 2 plugin picks up the code sent from the IDP to the identity platform, rather than that sent by the identity platform to Yaak.
By checking that the current navigation URL matches the provided redirect URI, we can make sure to use only the code intended for Yaak, no matter how many OAuth 2 loops there might be.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.