mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
more logoutputs
This commit is contained in:
parent
5439baaced
commit
9b5c023e0d
@ -29,7 +29,7 @@ export async function startCommunityAuthentication(
|
||||
})
|
||||
logger.debug('homeFedComA', new FederatedCommunityLoggingView(homeFedComA))
|
||||
const comB = await DbCommunity.findOneByOrFail({ publicKey: fedComB.publicKey })
|
||||
logger.debug('started with comB:', comB)
|
||||
logger.debug('started with comB:', new CommunityLoggingView(comB))
|
||||
// check if communityUuid is a valid v4Uuid and not still a temporary onetimecode
|
||||
try {
|
||||
if (
|
||||
|
||||
@ -43,7 +43,11 @@ export class AuthenticationResolver {
|
||||
logger.removeContext('handshakeID')
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const fedComA = await DbFedCommunity.findOneByOrFail({ publicKey: Buffer.from(args.publicKey) })
|
||||
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 errmsg = `invalid url of community with publicKey` + args.publicKey
|
||||
logger.error(errmsg)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user