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

fix: handle empty client_secret with basic and post client auth #610

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

Exidex
Copy link
Contributor

@Exidex Exidex commented Jul 6, 2023

Implementation of #609

const issuer = new Issuer();
const client = new issuer.Client({ client_id: 'an:identifier', client_secret: '' });
expect(await clientInternal.authFor.call(client, 'token')).to.eql({
headers: { Authorization: 'Basic YW4lM0FpZGVudGlmaWVyOg==' },

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "Basic YW4lM0FpZGVudGlmaWVyOg==" is used as [authorization header](1).
@panva panva changed the title Support setting client_secret to an empty string when using client_secret_basic or client_secret_post fix: handle empty client_secret with basic and post client auth Jul 6, 2023
@panva panva merged commit 402c711 into panva:main Jul 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants