Skip to content

Add support for login_hint in authorization url generation #4943

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

odelcroi
Copy link

@odelcroi odelcroi commented Jul 29, 2025

  • Add support for login_hint in authorization url generation

This is needed for using login_hint when connecting with oidc native flow in Element Web

Server side PR in MAS : element-hq/matrix-authentication-service#4568

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

@odelcroi odelcroi requested a review from a team as a code owner July 29, 2025 14:02
@odelcroi odelcroi requested review from dbkr and t3chguy July 29, 2025 14:02
@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label Jul 29, 2025
@odelcroi odelcroi force-pushed the feat/allow-login-hint branch from 3bda675 to 2b331a6 Compare July 29, 2025 14:03
Signed-off-by: olivier <[email protected]>

Signed-off-by: olivier <[email protected]>

fix lint

Signed-off-by: olivier <[email protected]>
@dbkr dbkr added this pull request to the merge queue Jul 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 29, 2025
@@ -125,6 +125,7 @@ export const generateAuthorizationUrl = async (
* @param prompt - indicates to the OP which flow the user should see - eg login or registration
* See https://openid.net/specs/openid-connect-prompt-create-1_0.html#name-prompt-parameter
* @param urlState - value to append to the opaque state identifier to uniquely identify the callback
* @param loginHint - send connecting user login hint to OP
Copy link
Member

Choose a reason for hiding this comment

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

I don't really understand this documentation?

Copy link
Author

@odelcroi odelcroi Jul 30, 2025

Choose a reason for hiding this comment

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

from the spec :

Suggested change
* @param loginHint - send connecting user login hint to OP
* @param loginHint - hint to the OP about the login identifier the user might use to log in

Copy link
Member

@richvdh richvdh Jul 30, 2025

Choose a reason for hiding this comment

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

maybe:

Suggested change
* @param loginHint - send connecting user login hint to OP
* @param loginHint - value to send as the `login_hint` to the OP, giving a hint about the login identifier the user might use to log in. See {@link https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest OIDC core 3.1.2.1}.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants