Christian Selig on Nostr: Anyone familiar with the StoreKit API and know what silly mistake I'm making? As a ...
Published at
2023-07-05 22:50:56Event JSON
{
"id": "76ce363fce1076ad93fc195c4ec9d5f6a4ad8c9e4e67074dc1e9421b9ecf6eb7",
"pubkey": "de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at": 1688597456,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/christianselig/statuses/110663922921973348"
]
],
"content": "Anyone familiar with the StoreKit API and know what silly mistake I'm making? As a test, I'm just trying to fetch my JWT string with Ruby, which *seems* to properly output in the format \"AAAA.BBBB.CCCC”, and then I try to use that as the auth header to get a list of my apps with:\n\ncurl -v https://api.appstoreconnect.apple.com/v1/apps -H \"Authorization: Bearer AAAA.BBBB.CCCC” but I always get a 401 Not Authorized error. \n\nWhat am I doing wrong? 😥\n\n(Fetch code: https://gist.github.com/christianselig/098a6f81f43d041eb4116798b93eb04d)\n\nhttps://files.mastodon.social/media_attachments/files/110/663/922/633/516/780/original/10676d0a1897285f.png",
"sig": "62f95845412da45a7c034aab54dc6321868ce717c4fad06a2c28dbb93c46fb8bdf18f9c484ec55fe27de12f6e3ba388dde3d6827f02a34db9c28662413d6075b"
}