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 extraParams argument to the OAuth2 schema #568

Open
owebb1 opened this issue Jan 13, 2023 · 1 comment
Open

Add extraParams argument to the OAuth2 schema #568

owebb1 opened this issue Jan 13, 2023 · 1 comment

Comments

@owebb1
Copy link

owebb1 commented Jan 13, 2023

This is listed here. react-simple-oauth2-login added support for this, so all that would need to be updated is the pipeline from the schema to that send

@owebb1
Copy link
Author

owebb1 commented Jan 13, 2023

We have to send this in OAuth2.jsx. This just requires including a dictionary in the OAuth2 schema which would allow this

return (
        <OAuth2Login
            isCrossOrigin={true}
            authorizationUrl={field.authorization_endpoint}
            responseType="code"
            scope={scope}
            clientId={field.client_id}
            redirectUri={redirectUri}
            extraParams = {field.extra_args}
            render={renderButton}
            onSuccess={onSuccess}
            onFailure={onFailure} />
    )

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

No branches or pull requests

1 participant