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

remove invalid bearer token that was used in test #243

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/integration/handlers/authorize-handler_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,9 @@ describe('AuthorizeHandler integration', function() {
grants: ['authorization_code'],
redirectUris: ['http://example.com/cb']
};
const authorizationCode = 'long-authz-code-?';
const authorizationCode = 'long-authz-code';
const accessTokenDoc = {
accessToken: 'some-access-token-code-?',
accessToken: 'some-access-token-code',

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "some-access-token-code" is used as [authorization header](1).
client,
user,
scope,
Expand Down Expand Up @@ -703,7 +703,7 @@ describe('AuthorizeHandler integration', function() {
response
.get('location')
.should
.equal('http://example.com/cb?code=long-authz-code-%3F&state=fooobarstatebaz');
.equal('http://example.com/cb?code=long-authz-code&state=fooobarstatebaz');
});

it('should support a custom `authenticateHandler`', async function () {
Expand Down