feat(gateway): verify Kakao account ownership
This commit is contained in:
@@ -315,6 +315,9 @@ describe('auction integration flow', () => {
|
||||
username: user.username,
|
||||
credential: sealGatewayPassword(user.password, await gatewayClient.auth.passwordKey.query()),
|
||||
});
|
||||
if (login.status !== 'login') {
|
||||
throw new Error('Local integration fixture unexpectedly requires Kakao OTP.');
|
||||
}
|
||||
const gatewayToken = await gatewayClient.auth.issueGameSession.mutate({
|
||||
sessionToken: login.sessionToken,
|
||||
profile: 'che:908',
|
||||
|
||||
@@ -231,6 +231,9 @@ describe('integration initialization flow', () => {
|
||||
username: user.username,
|
||||
credential: sealGatewayPassword(user.password, await gatewayClient.auth.passwordKey.query()),
|
||||
});
|
||||
if (login.status !== 'login') {
|
||||
throw new Error('Local integration fixture unexpectedly requires Kakao OTP.');
|
||||
}
|
||||
expect(login.sessionToken).toBeTruthy();
|
||||
}
|
||||
|
||||
@@ -308,6 +311,9 @@ describe('integration initialization flow', () => {
|
||||
username: user.username,
|
||||
credential: sealGatewayPassword(user.password, await gatewayClient.auth.passwordKey.query()),
|
||||
});
|
||||
if (login.status !== 'login') {
|
||||
throw new Error('Local integration fixture unexpectedly requires Kakao OTP.');
|
||||
}
|
||||
const gatewayToken = await gatewayClient.auth.issueGameSession.mutate({
|
||||
sessionToken: login.sessionToken,
|
||||
profile: 'che:2',
|
||||
|
||||
@@ -608,6 +608,9 @@ describe('pm2 orchestrator e2e', () => {
|
||||
username: 'e2e-user',
|
||||
credential: sealGatewayPassword('e2e-pass-123', await gatewayClient.auth.passwordKey.query()),
|
||||
});
|
||||
if (login.status !== 'login') {
|
||||
throw new Error('Local integration fixture unexpectedly requires Kakao OTP.');
|
||||
}
|
||||
|
||||
const gameSession = await gatewayClient.auth.issueGameSession.mutate({
|
||||
sessionToken: login.sessionToken,
|
||||
|
||||
@@ -283,6 +283,9 @@ describe('actual tournament lifecycle', () => {
|
||||
username,
|
||||
credential: sealGatewayPassword(`${username}-pass`, await gatewayClient.auth.passwordKey.query()),
|
||||
});
|
||||
if (login.status !== 'login') {
|
||||
throw new Error('Local integration fixture unexpectedly requires Kakao OTP.');
|
||||
}
|
||||
const gatewayToken = await gatewayClient.auth.issueGameSession.mutate({
|
||||
sessionToken: login.sessionToken,
|
||||
profile: 'che:908',
|
||||
|
||||
Reference in New Issue
Block a user