Authentication credentials are missing or invalid #2768
Replies: 3 comments 3 replies
-
Hello @shawnmcpeek. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the assistance. I tried what you said and it still gives me
the same issue.
…On Thu, Oct 10, 2024 at 5:51 AM Damilola Alimi ***@***.***> wrote:
Hello @shawnmcpeek <https://github.com/shawnmcpeek>.
At what point do you get this error? Is it when fetching certificates from
Apple developer portal in code signing identities section?
This might be an issue with your .p8 file, possibly due to incorrect
permissions or corrupt content. My suggestion would be to generate a new
API key in your Apple Developer account from App Store Connect > Users and
Access > Keys, making sure to grant yourself *App Manager or Admin
permissions*. Take note of the KeyID as well as the Issuer ID. Once
that's done, simply upload the new key with the raw content of the key, no
adjustments (without any spaces or base64 encoding). I'm sure this solution
will do the trick, but please do let me know if you need any further
assistance.
—
Reply to this email directly, view it on GitHub
<#2768 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6AS2EG5TQMCYQPAIA7HUXDZ2ZS4DAVCNFSM6AAAAABPOZN4POVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJQGMZTQNI>
.
You are receiving this because you were mentioned.Message ID:
<codemagic-ci-cd/codemagic-docs/repo-discussions/2768/comments/10903385@
github.com>
--
Vivat Jesus!
Shawn McPeek
PGK FS Council 15857
PFN Assembly 94
|
Beta Was this translation helpful? Give feedback.
-
Both API keys I have didn't show revoked or anything.
I didn't see any agreements that are needing to be signed. Everything looks
correct and up to date
…On Wed, Oct 16, 2024, 5:49 AM Damilola Alimi ***@***.***> wrote:
Oh, that's strange!
Can you check here
<https://appstoreconnect.apple.com/access/integrations/api> to confirm if
your App Store Connect API key has been revoked? If it isn't try recreating
a new one and add it to Codemagic (with Admin or App manager role)
Check also in the following link
<https://appstoreconnect.apple.com/agreements/#/> if there's any pending
agreements that need to be signed
—
Reply to this email directly, view it on GitHub
<#2768 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6AS2EGLBQK3I2R6RYPUTJDZ3ZHFTAVCNFSM6AAAAABPOZN4POVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJVHEYDANA>
.
You are receiving this because you were mentioned.Message ID:
<codemagic-ci-cd/codemagic-docs/repo-discussions/2768/comments/10959004@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
I am trying to make sure my codemagic codesigning is properly configured. I even did this watching a webinar that codemagic put out in 2022 on how to do this process. I uploaded the api key as told. When I try to add ios certificates I am getting this new error:
Failed to fetch certificates:
Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens
I get the same error in trying to generate new certificates as well as trying to fetch them.
I did have a set working before in another attempt months ago, but I don't have that set up any more. I was never asked to make a token json or anything, and that page is even more confusing as to what is wanted than just about anything.
Expected results
Certificate generated/fetched!
Actual results
Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens
Build id (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions