diff --git a/test-integration/auth0.integration.test.js b/test-integration/auth0.integration.test.js index 4784f43..1bed5f7 100644 --- a/test-integration/auth0.integration.test.js +++ b/test-integration/auth0.integration.test.js @@ -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 diff --git a/test-integration/oauth2-mocked-server.integration.test.js b/test-integration/oauth2-mocked-server.integration.test.js index 375e2e7..b2f898f 100644 --- a/test-integration/oauth2-mocked-server.integration.test.js +++ b/test-integration/oauth2-mocked-server.integration.test.js @@ -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 }) @@ -37,7 +36,7 @@ async function buildServer({ oAuthServerUrl }) { return server } -describe('Authentication against Auth0', () => { +describe('Authentication against oauth2 mocked server', () => { let server let OAuthServer @@ -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' }) })