Skip to content

Commit

Permalink
chore: disabled authentication for contact-manager-rest-api test
Browse files Browse the repository at this point in the history
  • Loading branch information
sksadjad committed Sep 12, 2023
1 parent 9eb5811 commit 20ca9d0
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions packages/contact-manager-rest-api/__tests__/RestAPI.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
import { ExpressBuilder, StaticBearerAuth } from '../../ssi-express-support/src'
import { ExpressBuilder } from '../../ssi-express-support/src'
import { ContactManagerApiServer } from '../src'
import agent from './agent'

StaticBearerAuth.init('bearer')
.withUsers([
{ id: 1, token: '123456', name: 'API User 1' },
{ id: 2, token: 'abcdef', name: 'API User 2' },
])
.connectPassport()

const builder = ExpressBuilder.fromServerOpts({
port: 5000,
hostname: '0.0.0.0',
})
.withMorganLogging({ format: 'dev' })
.withPassportAuth(true)
.withSessionOptions({ secret: '1234', name: 'oidc-session' })
.withPassportAuth(false)

const expressSupport = builder.build({ startListening: true })

Expand All @@ -27,18 +19,6 @@ new ContactManagerApiServer({
enabled: false,
},
},
partyRead: {
disableGlobalAuth: true
},
partyWrite: {
disableGlobalAuth: true
},
identityRead: {
disableGlobalAuth: true
},
partyTypeRead: {
disableGlobalAuth: true
}
},
enableFeatures: ['party_read', 'party_write', 'party_type_read', 'identity_read'],
},
Expand Down

0 comments on commit 20ca9d0

Please sign in to comment.