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

Add a state parameter to WebAuthenticationClient.login() API #282

Open
haroldteramotosonos opened this issue Feb 13, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@haroldteramotosonos
Copy link

haroldteramotosonos commented Feb 13, 2024

Describe the feature request?

This feature request is related to a previous issue #276.

Thank you for releasing a new version with the update to pass the state parameter to AuthorizationCodeFlow.start(). Unfortunately, we are still unable to pass the state parameter to AuthorizationCodeFlow as there is no way for us to pass the state parameter from the WebAuthenticationClient.

Our request is to add a new optional parameter to the login() API and pass it in to authorizationCodeFlow.start() API.

    suspend fun login(
        context: Context,
        redirectUrl: String,
        extraRequestParameters: Map<String, String> = emptyMap(),
        scope: String = oidcClient.configuration.defaultScope,
        state: String = UUID.randomUUID().toString()     // <-- New state parameter
    ): OidcClientResult<Token>

New or Affected Resource(s)

N/A

Provide a documentation link

No response

Additional Information?

No response

@haroldteramotosonos haroldteramotosonos added the enhancement New feature or request label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant