Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE/IMPROVEMENT] Pass 'IdP Hint' to Keycloak #1101

Merged

Conversation

marekful
Copy link
Contributor

@marekful marekful commented Feb 9, 2023

marekful Medium marekful /FEATURE/pass-idp-hint-to-keycloak-auth → Lissy93/dashy Commits: 3 | Files Changed: 4 | Additions: 7 Label Unchecked Tasks

Category:
Feature improvement

Overview
When Keycloak is used with an external Identity Provider, it is possible to skip
the Keycloak login page and redirect the user directly to the specified IdP if the idpHint
login option is passed to the adapter. (See login())

This has been tested with keycloak-js version 20.0.3 (to which this PR upgrades) against Keycloak server 18.0.2 so it should work with this and presumably newer versions of the server too. The new configuration option is optional and the standard Keycloak authentication is unaffected when not specified.

New Vars (if applicable)
Added appConfig.auth.keycloak.idpHint optional configuration option.

Code Quality Checklist (Please complete)

  • All changes are backwards compatible
  • All lint checks and tests are passing
  • There are no (new) build warnings or errors
  • (If a new config option is added) Attribute is outlined in the schema and documented
  • (If a new dependency is added) Package is essential, and has been checked out for security or performance
  • Bumps version, if new feature added

* add App Config option for 'IdP Hint' under Keycloak Authentication
* refactor the authentication trigger mechanism to allow direct call
  to keyjclaok-js adapter login() function
* remove `onLoad` from construction options (as it belongs to init())
@netlify
Copy link

netlify bot commented Feb 9, 2023

Deploy Preview for dashy-dev ready!

Name Link
🔨 Latest commit 99fa9bc
🔍 Latest deploy log https://app.netlify.com/sites/dashy-dev/deploys/63e4fd91b8f41d000877896e
😎 Deploy Preview https://deploy-preview-1101--dashy-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@viezly
Copy link

viezly bot commented Feb 9, 2023

Changes preview:

Legend:

👀 Review pull request on Viezly

Copy link
Owner

@Lissy93 Lissy93 left a comment

Choose a reason for hiding this comment

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

Looks good - thanks @marekful

@Lissy93 Lissy93 merged commit ba6fa37 into Lissy93:master Feb 12, 2023
a-mnich added a commit to a-mnich/dashy that referenced this pull request Feb 12, 2023
adamantike added a commit to adamantike/dashy that referenced this pull request Feb 22, 2023
Introduced in Lissy93#1101, which updated
`package.json` without refreshing the `yarn.lock` file.
@adamantike adamantike mentioned this pull request Feb 22, 2023
6 tasks
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.

None yet

2 participants