mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
next try
This commit is contained in:
parent
528d8163e7
commit
37dd27745a
@ -43,12 +43,13 @@ export class AuthenticationResolver {
|
||||
logger.removeContext('handshakeID')
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const pubKeyComA = Buffer.from(args.publicKey)
|
||||
logger.debug('pubKeyComA', pubKeyComA.toString('hex'))
|
||||
const pubKeyComA = Buffer.from(args.publicKey, 'hex')
|
||||
logger.debug('pubKeyComA', pubKeyComA)
|
||||
logger.debug('args.publicKey', args.publicKey)
|
||||
const fedComA = await DbFedCommunity.findOneByOrFail({ publicKey: pubKeyComA })
|
||||
logger.debug('fedComA', new FederatedCommunityLoggingView(fedComA))
|
||||
if (!openConnectionJwtPayload.url.startsWith(fedComA.endPoint)) {
|
||||
// const requestingCom = await DbCommunity.findOneBy({ publicKey: Buffer.from(args.publicKey, 'hex') })
|
||||
const fedComA = await DbFedCommunity.findOneBy({ publicKey: Buffer.from(args.publicKey, 'hex') })
|
||||
logger.debug('fedComA', new FederatedCommunityLoggingView(fedComA!))
|
||||
if (fedComA && !openConnectionJwtPayload.url.startsWith(fedComA.endPoint)) {
|
||||
const errmsg = `invalid url of community with publicKey` + args.publicKey
|
||||
logger.error(errmsg)
|
||||
logger.removeContext('handshakeID')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user