Skip to content

Conversation

@johnvan7
Copy link

@johnvan7 johnvan7 commented Oct 30, 2024

Overview

Added config property to hide a connector in the login web page, for example if it should be used only for m2m.

What this PR does / why we need it

As requested in #3145 and #4231

Adds connector's config property "hidden" (default false).

Related

Discussion: Can I hide a connector? #3145

Signed-off-by: Giovanni Vella <giovanni.vella98@gmail.com>
Copy link
Contributor

@cardoe cardoe left a comment

Choose a reason for hiding this comment

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

This would be a great addition.

@cardoe
Copy link
Contributor

cardoe commented Oct 11, 2025

@nabokihms and @sagikazarmark what do you think of this?

cardoe added a commit to cardoe/dex that referenced this pull request Dec 9, 2025
@cardoe
Copy link
Contributor

cardoe commented Dec 9, 2025

To further this along, I've pulled this PR into build that I made at https://github.com/cardoe/dex/releases/tag/v2.44.90 You can grab the container to test with at ghcr.io/cardoe/dex:v2.44.90 and report back on this PR.

@johnvan7
Copy link
Author

Hi @cardoe, I've tested ghcr.io/cardoe/dex:v2.44.90 with the connector property "hidden: true" and it works as expected!

// or making Dex reading both tags and act accordingly.
Config []byte `json:"email"`
// It specifies if the connector should be hidden in the login web page.
Hidden bool `json:"hidden"`
Copy link
Member

Choose a reason for hiding this comment

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

Unfortunately, this isn't enough for the storage layer.

Try adding it to this test: https://github.com/dexidp/dex/blob/master/storage/conformance/conformance.go#L616

Conformance tests will fail and you will see that you need to change.

Generally, any schema based storage will have to be updated as well.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @sagikazarmark, I updated the db schema but the tests still fail due to this issue #4461

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