mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
set correct url in callback args
This commit is contained in:
parent
ec2454e69e
commit
84b9f21049
@ -44,7 +44,7 @@ export class AuthenticationClient {
|
||||
)
|
||||
return true
|
||||
} catch (err) {
|
||||
logger.error('Authentication: error on openConnection', err)
|
||||
logger.error('Authentication: error on openConnection: ', err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ export async function startOpenConnectionCallback(
|
||||
callbackArgs.oneTimeCode = oneTimeCode.toString()
|
||||
// TODO encrypt callbackArgs.url with requestedCom.publicKey and sign it with homeCom.privateKey
|
||||
callbackArgs.url = homeFedCom.endPoint.endsWith('/')
|
||||
? homeFedCom.endPoint
|
||||
? homeFedCom.endPoint + homeFedCom.apiVersion
|
||||
: homeFedCom.endPoint + '/' + homeFedCom.apiVersion
|
||||
logger.debug(`Authentication: start openConnectionCallback with args:`, callbackArgs)
|
||||
if (await client.openConnectionCallback(callbackArgs)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user