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

Is there a way pass "login_hint" for OAuthPrompt #4854

Open
NWH-SAmin5 opened this issue Feb 10, 2025 · 0 comments
Open

Is there a way pass "login_hint" for OAuthPrompt #4854

NWH-SAmin5 opened this issue Feb 10, 2025 · 0 comments
Labels
feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@NWH-SAmin5
Copy link

NWH-SAmin5 commented Feb 10, 2025

Is your feature request related to a problem? Please describe.
Some of the functionality which can be automated through a bot instead of web experience, becomes more than needed steps, which can be reduced with optional parameter like login_hint

Describe the solution you'd like
Provide ability to pass optional query string parameter in OAuthPromptSettings. This will be able to pass username in the login url reducing steps and improving end user experience.

AI generated Example Implementation
Here is an example of how you can set up an OAuthPrompt with the login_hint parameter in the Bot Framework:

const { OAuthPrompt } = require('botbuilder-dialogs');

const oAuthPromptSettings = {
    connectionName: process.env.CONNECTION_NAME || 'Myconnection',
    text: 'Please sign in',
    title: 'Sign in',
    timeout: 300000,
    // Additional parameters for OAuth
    additionalOAuthParameters: {
        login_hint: 'user@privilegedaccount.com'
    }
};

this.dialogs.add(new OAuthPrompt('OAuthPrompt', oAuthPromptSettings));
@NWH-SAmin5 NWH-SAmin5 added feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team. labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

1 participant