mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
remove detailed logs and use correct publickey for
openConnectionCallback
This commit is contained in:
parent
37dd27745a
commit
d991606d93
@ -43,10 +43,6 @@ export class AuthenticationResolver {
|
||||
logger.removeContext('handshakeID')
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const pubKeyComA = Buffer.from(args.publicKey, 'hex')
|
||||
logger.debug('pubKeyComA', pubKeyComA)
|
||||
logger.debug('args.publicKey', args.publicKey)
|
||||
// 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)) {
|
||||
|
||||
@ -60,7 +60,7 @@ export async function startOpenConnectionCallback(
|
||||
// encrypt callbackArgs with requestedCom.publicJwtKey and sign it with homeCom.privateJwtKey
|
||||
const jwt = await encryptAndSign(callbackArgs, homeComB!.privateJwtKey!, comA.publicJwtKey!)
|
||||
const args = new EncryptedTransferArgs()
|
||||
args.publicKey = comA.publicKey.toString('hex')
|
||||
args.publicKey = homeComB!.publicKey.toString('hex')
|
||||
args.jwt = jwt
|
||||
args.handshakeID = handshakeID
|
||||
if (await client.openConnectionCallback(args)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user