Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] The request could not be completed because: {"authType"=>"sa"} #12577

Closed
4 tasks done
danivegamx opened this issue May 21, 2018 · 70 comments
Closed
4 tasks done

[!] The request could not be completed because: {"authType"=>"sa"} #12577

danivegamx opened this issue May 21, 2018 · 70 comments

Comments

@danivegamx
Copy link

danivegamx commented May 21, 2018

Question Checklist

Question Subject

Running fastlane for an adhoc distribution is not working. Error below.

Question Description

When I run via bundle exec fastlane beta I got this:

[!] The request could not be completed because: {"authType"=>"sa"} aa=5A52AF019EF22EE5C2D8BBA8AADA6E4F; Domain=idmsa.apple.com; Path=/; Secure; HttpOnly, dslang=US-EN; Domain=apple.com; Path=/; Secure; HttpOnly, site=USA; Domain=apple.com; Path=/; Secure; HttpOnly, acn01=57NJeJgkumOF6rAbV4AvInJhJaP4TxVrExywB7p+W1pyLjWuY0gBrxkAECrx0bG3+w==; Max-Age=31536000; Expires=Tue, 21-May-2019 22:41:58 GMT; Domain=apple.com; Path=/; Secure; HttpOnly

This is my configuraiton file:


default_platform(:ios)

lane :beta do
    get_certificates
    get_provisioning_profile(
        username: ENV['APPLE_TEAM_DEV_ID'],
        adhoc: true,
        filename: "AdHoc_com.company.mobileprovision",
        app_identifier: "com.company"
    )
    get_info_plist_path(
        build_configuration_name: "staging",
        target: "staging"
    )
    increment_version_number_in_plist(
        target: "staging",
        bump_type: "patch"
    )
    gym(
        scheme: "staging",
        export_method: "ad-hoc",
        export_xcargs: "-allowProvisioningUpdates"
    )
    aws_s3(
        access_key: ENV['S3_ACCESS_KEY'],
        secret_access_key: ENV['S3_SECRET_ACCESS_KEY'],
        bucket: "bucket-name",
        region: "region",
        ipa: "appname.ipa",
        app_directory: "beta"
    )
end

Any idea?

@AaronSofaer
Copy link

I'm also getting this when I run match, after it decrypts the certs repo and then goes to check the validity of the certs with Apple. Thought it was on my end!

@cpetzel
Copy link

cpetzel commented May 21, 2018

This is currently failing for us too with cert

@iosdevben
Copy link

Me too!

@joshdholtz
Copy link
Member

Hello, everyone! We are looking into this 💪 👀

@danivegamx
Copy link
Author

Awesome, thanks a lot

@kirushi
Copy link

kirushi commented May 21, 2018

@joshdholtz that's great to hear :D

@lalitb
Copy link

lalitb commented May 21, 2018 via email

@getaaron
Copy link
Collaborator

getaaron commented May 21, 2018

Login to https://itunesconnect.apple.com with your Apple ID; you should see this new privacy prompt:

screen shot 2018-05-21 at 7 09 39 pm

Once you select "continue", this should resolve your issue.

@sungjin0213
Copy link

sungjin0213 commented May 21, 2018

@getaaron That resolved the issue for me for fastlane pem (I had to log out and login on iTunes to see this). Thanks!

@AaronSofaer
Copy link

Confirmed that this resolved my issue with match. (Note: you have to sign into itc, not into developer.apple.com , the latter doesn't present the privacy policy.)

@kirushi
Copy link

kirushi commented May 21, 2018

Confirmed that this fixes the issue for me too!

@danivegamx
Copy link
Author

Solved, but I had to change to another Apple ID because the one I was using wasn't eligible for iTunes connect (whut?) Thanks

@joshdholtz
Copy link
Member

@danivegamx Going to keep this open for now for visibility and until I make a code fix for a prettier error 🙃

Sent with GitHawk

@stevemoser
Copy link

Hmm, the above fix didn't work for me 😭

@joshdholtz
Copy link
Member

@stevemoser Gotta ask this but did you accept it under all your iTunesConnect accounts that you use? 🙃

Sent with GitHawk

@bencmorrison
Copy link

bencmorrison commented May 22, 2018

Am I understanding this correctly? In order for this to work, the account we are using for match has to also be on iTC?

I use two accounts. One that has access to the developer account and one on iTC. The developer account does not have a privacy prompt.

@joshdholtz
Copy link
Member

@bencmorrison Hmmm, I’ve only been able to get that prompt on the iTunesConnect side but I will see what I can dig up when I get home in 30 minutes 💪

Sent with GitHawk

@getaaron
Copy link
Collaborator

What if you login on appleid.apple.com?

@pangers
Copy link

pangers commented May 22, 2018

When I went to the iTunes Connect site, I was already logged in automatically. I had to sign out and sign back in to get the prompt.

@joshdholtz
Copy link
Member

Going to appleid.apple.com as @getaaron suggested also shows the same privacy step 💪

screen shot 2018-05-21 at 7 42 56 pm

@nafu
Copy link
Collaborator

nafu commented May 22, 2018

Thanks @getaaron

1 similar comment
@enso123456
Copy link

Thanks @getaaron

@bencmorrison
Copy link

Thanks @getaaron, it appears to be working for me as well!

@mmarvick
Copy link

Also getting this for {"authType"=>"hsa"} -- the same solution worked (including this comment for Google-ability).

@nevil
Copy link

nevil commented May 22, 2018

I went to itunes connect and try to login with our robot account.
Clicked Continue and got the below. But the account could then be used by fastlane again...

itc

@joshdholtz
Copy link
Member

@nevil Try going to https://appleid.apple.com and trying this 😊

@joshdholtz
Copy link
Member

@mmarvick I have not seen hsa yet! Is this account configured any different? I have no idea how but just curious how hsa showed up 😇

@lalitb
Copy link

lalitb commented May 23, 2018

@joshdholtz can we handle for authTypes non-sa and hsa2 the same way. As of now, we get below exception for 2fa account which haven't accepted privacy:

/usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/client.rb:478:in `send_shared_login_request': {"authType"=>"hsa2"} (Spaceship::Tunes::Error)
aa=<hidden>; Domain=idmsa.apple.com; Path=/; Secure; HttpOnly, dslang=US-EN; Domain=apple.com; Path=/; Secure; HttpOnly, site=USA; Domain=apple.com; Path=/; Secure; HttpOnly, acn01=<hidden>; Max-Age=31536000; Expires=Thu, 23-May-2019 05:17:34 GMT; Domain=apple.com; Path=/; Secure; HttpOnly
	from /usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/portal/portal_client.rb:27:in `send_login_request'
	from /usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/client.rb:662:in `do_login'
	from /usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/client.rb:363:in `login'
	from /usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/client.rb:71:in `login'
	from /usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/portal/spaceship.rb:25:in `login'
	from /usr/local/rvm/gems/ruby-2.4.2/gems/fastlane-2.96.0/spaceship/lib/spaceship/portal/spaceship.rb:98:in `login'
	from /tmp/a.rb:3:in `<main>'

@joshdholtz
Copy link
Member

@lalitb non-sa and hsa2 should be in 2.96.1 😊

@brad
Copy link
Contributor

brad commented May 23, 2018

👍 2.96.1 does indeed display a much friendlier error, however the recommended solution does not fix the problem for me. The privacy statement appears every time I login no matter how many times I accept it.

  1. Login
  2. Answer security questions
  3. Select "Continue" on the privacy prompt
  4. Logout
  5. Go to step 1

I have repeated this 4 times with the login used by fastlane. Just me?

@brad
Copy link
Contributor

brad commented May 23, 2018

Tried on a different network and this time it took. The network it didn't work on was my AT&T Mobley hotspot. I occasionally encounter weird quirks like this on that network (here's another one), so it's not entirely surprising. Sorry for the noise, but hopefully it helps somebody else as well.

@inturbidus
Copy link

Good to see other CLT devs here @stevemoser

@jamesgmorgan
Copy link

I had to logout and login again to see the notice but acknowledged it and everything works again. Way not to do GDPR, Apple :-/

@garyhooper
Copy link

I continue to get an error: "Need to acknowledge to Apple's Apple ID and Privacy statement. Please manually log into https://appleid.apple.com (or https://itunesconnect.apple.com) to acknowledge the statement".

I have logged into both (and developer.apple.com) multiple times from different networks. No statement is presented to acknowledge, yet fastlane produces the error above.

@inturbidus
Copy link

I had to switch browsers from Chrome to Safari. Logout and log back in to ITC.

@garyhooper
Copy link

I tried that, different browser on a different computer. Still no joy.

@getaaron
Copy link
Collaborator

getaaron commented Jun 2, 2018

@garyhooper are you logging in with the same Apple ID specified in fastlane/Appfile? A few users with your issue have been logging in with a personal account while fastlane is configured to use a machine account.

@garyhooper
Copy link

Yes, I have verified that they are the same.

@garyhooper
Copy link

Sill not working. I am running under Jenkins...is anyone else? More detail under #12675.

@coneman
Copy link

coneman commented Jun 6, 2018

Login to https://appstoreconnect.apple.com/ instead of https://itunesconnect.apple.com to accept the privacy statement.

@garyhooper
Copy link

fastlane is still failing.

When logging in to https://appstoreconnect.apple.com/, no privacy statement acceptance was presented; it went straight to the dashboard.

@mrh-is
Copy link

mrh-is commented Jun 8, 2018

I just solved this by checking all three of:

  1. appleid.apple.com
    • I had to log into a device with the Apple ID in question before I could log into Apple ID in the browser, heads up
  2. developer.apple.com
  3. appstoreconnect.apple.com

@garyhooper
Copy link

I have logged into each of https://appleid.apple.com, https://developer.apple.com, https://itunesconnect.apple.com, and https://appstoreconnect.apple.com from multiple browsers (including Safari) and from multiple (mac) computers. No privacy acceptance is required (completed several days ago), yet fastlane certs still fails.

@mrh-is, can you clarify what you mean by "I had to log into a device with the Apple ID in question before I could log into Apple ID in the browser, heads up"?

@mrh-is
Copy link

mrh-is commented Jun 8, 2018

@garyhooper I wan't able to log into appleid.apple.com until I had already logged into an iOS device with that Apple ID.

@garyhooper
Copy link

on an iOS device, i have logged into both itunesconnect app and website, plus app store. for all i logged out and back in again. still fails.

@getaaron
Copy link
Collaborator

getaaron commented Jun 8, 2018

I think @mrh-is meant sign in via Settings - iCloud on iOS or something. But I doubt that will fix anything.

At this point the only two things I can think of are:

  1. logging the exact HTTP response headers & body in case there’s some info there. You could try running the Ruby commands via IRB, or making a curl request

  2. Logging into https://iforgot.apple.com/ and going through the account unlock flow mentioned in https://support.apple.com/en-us/HT204106. However if your account were locked I’d expect bigger problems

@garyhooper
Copy link

RESOLVED. All members associated with the team must accept that privacy statement, regardless of which user's account is used to get the certificates.

@inturbidus
Copy link

So glad. No more notifications for this issue! Hahaha.

@getaaron
Copy link
Collaborator

getaaron commented Jun 9, 2018

@garyhooper I’m pretty sure that’s not it since there are definitely people on my team who haven’t accepted it, but glad to hear you got it working. Maybe you have something overriding the account specified in the Appfile?

@garyhooper
Copy link

I don’t see anything overriding the Appfile. I have 4 emails associated with the team. 2 had accepted, including the appfile id. Accepting the other two resulted in success.

@fastlane fastlane locked and limited conversation to collaborators Aug 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests