Skip to content

Added support for authentication using the OAuthPrompt #135

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

Closed
wants to merge 4 commits into from

Conversation

Stevenic
Copy link
Collaborator

Added a new Authentication class that the Application class uses to automatically call the OAuthPrompt at the start of every turn.

The developer just needs to configure their Application instance with their OAuthPrompt settings.

@Stevenic Stevenic requested a review from corinagum May 19, 2023 13:07
@rony2818
Copy link

Could you have sample for using the OAuthPrompt?
Because when i try to use config OAuthPrompt settings look like this:

const app = new Application<ApplicationTurnState>({
    storage,
    ai: {
        planner,
        promptManager,
        prompt: 'chatGPT'
    },
    authentication: {
        connectionName: process.env.CONNECTION_NAME,
        text: 'Please login',
        title: 'Login',
        timeout: 30000 // User has 5 minutes to login.
    }
});

nothing happens after login
Screenshot 2023-06-30 at 16 25 55

Do I need to do anything more or just OAuthPrompt settings is enough?

@singhk97
Copy link
Collaborator

@Stevenic when can we expect this module to be checked in?

@corinagum
Copy link
Collaborator

Closing in favor of #670, which is a branch off this PR and has more updates

@corinagum corinagum closed this Nov 9, 2023
@corinagum corinagum deleted the stevenic/oauthprompt branch November 9, 2023 19:40
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.

4 participants