Skip to content

add connector_id to example app#1496

Merged
srenatus merged 3 commits into
dexidp:masterfrom
srenatus:sr/add-connector-id-to-example-app
Jul 25, 2019
Merged

add connector_id to example app#1496
srenatus merged 3 commits into
dexidp:masterfrom
srenatus:sr/add-connector-id-to-example-app

Conversation

@srenatus
Copy link
Copy Markdown
Contributor

@srenatus srenatus commented Jul 24, 2019

This makes it easy to play with the new parameter.

However, it also shows a problem: when trying to login to dex (run via dex serve examples/config-dev.yaml), and providing local as connector_id, the "back link" will be shown, and go back in browser history one step -- this will not lead you to the connector selection, but to example-app. To be fixed in a follow-up PR (help wanted! 😉)

Added two small cleanups, nothing too significant.

srenatus added 2 commits July 24, 2019 12:17
As a piece of "living documentation" for dexidp#1481.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
Signed-off-by: Stephan Renatus <srenatus@chef.io>
@srenatus srenatus self-assigned this Jul 24, 2019
Now, we'll return a standard error, and have the caller act upon this
being an instance of authErr.

Also changes the storage.AuthRequest return to a pointer, and returns
nil in error cases.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
@srenatus srenatus force-pushed the sr/add-connector-id-to-example-app branch from cbf37b2 to 8561a66 Compare July 25, 2019 11:40
@srenatus srenatus requested a review from JoelSpeed July 25, 2019 12:27
Copy link
Copy Markdown
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

This all makes sense 👍

@srenatus srenatus merged commit fd53c0a into dexidp:master Jul 25, 2019
mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
…xample-app

add connector_id to example app
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.

2 participants