Skip to content

Commit

Permalink
test: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign committed Apr 26, 2023
1 parent 736131a commit 5174609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test-integration/auth0.integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ if (

async function buildServer() {
const server = Fastify()

// Setup fastify-auth0-verify
await server.register(require('../'), {
domain: process.env.AUTH0_DOMAIN + '/.well-known/jwks.json',
secret: process.env.AUTH0_CLIENT_SECRET,
issuer: new URL('https://' + process.env.AUTH0_DOMAIN).toString()
secret: process.env.AUTH0_CLIENT_SECRET
})

// Setup auth0 protected route
Expand Down
6 changes: 1 addition & 5 deletions test-integration/oauth2-mocked-server.integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ async function buildServer({ oAuthServerUrl }) {
// Setup fastify-auth0-verify
await server.register(require('../'), {
domain: `${oAuthServerUrl}/jwks`,
audience: 'fastify-auth0-verify-test-api',
issuer: oAuthServerUrl
})

Expand All @@ -37,7 +36,7 @@ async function buildServer({ oAuthServerUrl }) {
return server
}

describe('Authentication against Auth0', () => {
describe('Authentication against oauth2 mocked server', () => {
let server
let OAuthServer

Expand Down Expand Up @@ -87,9 +86,6 @@ describe('Authentication against Auth0', () => {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({
client_id: 'client_id',
client_secret: 'client_secret',
audience: 'audience',
grant_type: 'client_credentials'
})
})
Expand Down

0 comments on commit 5174609

Please sign in to comment.