-
-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
Environment
- CLI: 5.3.4
- Cross-platform modules: 5.3.2
- Android Runtime: 5.3.1
- iOS Runtime: 5.3.1
- Plugin(s): -
Describe the bug
During executing tns publish ios
command does not execute and regular help output with the previous message:
Request was unsuccessful. Server returned: {
"authType" : "hsa2"
}
when executing the same command with --log trace
option the real fails reason can be seen:
httpRequest: { url: 'https://idmsa.apple.com/appleauth/auth/signin',
method: 'POST',
headers:
{ 'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest',
'X-Apple-Widget-Key':
'e0b80c3bf78523bfe80974d320935bfa30add02e1bff88ec2166c6bd5a706c42',
Accept: 'application/json, text/javascript',
'User-Agent': 'tnsCLI/5.3.4 (Node.js 11.3.0; darwin; x64)',
'Accept-Encoding': 'gzip,deflate' },
proto: 'https',
host: 'idmsa.apple.com',
port: null,
path: '/appleauth/auth/signin',
encoding: null,
followAllRedirects: true }
httpRequest: Sending:
{"accountName":"******************@gmail.com","password":"*******","rememberMe":true}
httpRequest: Done. code = 409
Request was unsuccessful. Server returned: {
"authType" : "hsa2"
}
Error: {
"authType" : "hsa2"
}
at Gunzip.responseStream.on (/Users/***/.nodenv/versions/11.3.0/lib/node_modules/nativescript/lib/common/http-client.js:180:45)
at Gunzip.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1098:12)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
And yes my Apple ID account has TWO-FACTOR AUTHENTICATION enabled.
To Reproduce
Enable TWO-FACTOR AUTHENTICATION in your Apple ID and try to execute tns publish ios
for your NS project.
Expected behavior
tns publish ios
must ask two-factor code in the same way as it asks to enter Apple ID account and password.
Additional context
I found implementation of this functionality in fastlane project on GitHub (409 error response handling and handle_two_step_or_factor implementation).
charsleysa, maxorlovsky, toddanglin, th0r and toneill818