Skip to content

Add PKCE Flow #36

Open
Open
@AyushChothe

Description

@AyushChothe

Feature request

Add PKCE Flow for login_with_oauth and also add exchange_code_for_session method.

Is your feature request related to a problem? Please describe.

I want the complete CLI login flow to mirror the website experience. After generating the login URL using the login_with_oauth method, I spin up an Axum server to handle the callback. I've ported the JavaScript PKCE flow to Rust and use the oauth2 crate to generate the code_challenge. However, to verify the authorization code and retrieve the session, I need an exchange_code_for_session method that accepts the PkceCodeVerifier as a parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions