Skip to content

DEP Implementation: ExtendPayload interface support #2876#2963

Open
loafoe wants to merge 1 commit into
dexidp:masterfrom
philips-forks:feature/extend-payload
Open

DEP Implementation: ExtendPayload interface support #2876#2963
loafoe wants to merge 1 commit into
dexidp:masterfrom
philips-forks:feature/extend-payload

Conversation

@loafoe
Copy link
Copy Markdown
Contributor

@loafoe loafoe commented May 19, 2023

Overview

Implementation of #2876

What this PR does / why we need it

Implements DEP-2876

Special notes for your reviewer

Does this PR introduce a user-facing change?


@loafoe loafoe force-pushed the feature/extend-payload branch from 06fb632 to a416ee5 Compare August 15, 2023 14:49
@kromanow94
Copy link
Copy Markdown

👍

@loafoe loafoe force-pushed the feature/extend-payload branch 2 times, most recently from b5611ca to b08a08a Compare August 26, 2024 08:18
@loafoe loafoe force-pushed the feature/extend-payload branch from b08a08a to 1386a56 Compare September 12, 2024 03:51
@loafoe loafoe force-pushed the feature/extend-payload branch from 1386a56 to 96f1889 Compare October 3, 2024 09:56
@loafoe loafoe force-pushed the feature/extend-payload branch 2 times, most recently from d0fe647 to 1064ab3 Compare October 30, 2024 07:19
@loafoe loafoe force-pushed the feature/extend-payload branch 2 times, most recently from 36c24ac to be8a6df Compare January 22, 2025 11:57
@maelvls
Copy link
Copy Markdown

maelvls commented May 30, 2025

Hey, thanks for the frequent updates to your PR!

For context, I'm using your DEP in my "Synology Google SSO" fork of Dex: https://maelvls.dev/synology-sso-with-personal-google-account/

Comment thread connector/connector.go
}

type PayloadExtender interface {
ExtendPayload(scopes []string, payload []byte, connectorData []byte) ([]byte, error)
Copy link
Copy Markdown

@maelvls maelvls Jun 1, 2025

Choose a reason for hiding this comment

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

Would be great to pass the claims as well as context.Context here, WDYT?

E.g.:

// PayloadExtender allows connectors to enhance the payload before signing. See:
// https://github.com/dexidp/dex/issues/2876.
type PayloadExtender interface {
	ExtendPayload(scopes []string, claims storage.Claims, payload []byte, connectorData []byte) ([]byte, error)
}

Signed-off-by: Andy Lo-A-Foe <andy.loafoe@gmail.com>
@loafoe loafoe force-pushed the feature/extend-payload branch 2 times, most recently from 6b2d393 to 76f1298 Compare June 3, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants