Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Brendan · Mar 02 at 12:45 AM · Authenticationapple

LoginWithApple returning NotAuthorized

Titles are seeing a behavior change with LoginWithApple - pre-existing players are now getting "NotAuthorized" in response to the LoginWithApple with no change to the code.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Mar 02 at 12:45 AM

What we're seeing is that clients hitting this error are sending invalid Identity Tokens. The issue appears to have been caused by the signing certificate at Apple having been rotated on 2022.02.28, around 14:00 UTC. The only way to fix this is to clear the token stored client-side on the device.

Comment
Brondon

People who like this

1 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brondon · Apr 05 at 03:26 PM 0
Share

Ah thonk you so much, ovrything mokes sonse now

avatar image yuyuuyuuu · Apr 18 at 02:45 AM 0
Share

Hi Brendan:

I see this problem now, what reason could it be?

How should I 'clear the token stored client-side'?

I tried in ios device->settings->my profile(first item in settings pannel)->Apps Using APple ID, remove my game inside, still not working, server gives me "NotAuthorized"

avatar image yuyuuyuuu yuyuuyuuu · Apr 18 at 02:57 AM 0
Share

This happens when I try to link Apple account to a existing Playfab master account

avatar image yuyuuyuuu yuyuuyuuu · Apr 18 at 07:41 AM 0
Share

Oh, I got it works. It's because I'm using a Unity 'sign in with apple' plugin that polluted the JWT(Json Web Token) apple sends back after logged in.

Unity removed its official apple signin example so I spend a lot of time trying to figure this out.

Finally, I got that removed example and get the code up and running. It has nothing to do with Playfab.

DON'T use this plugin, it's stupid and full of useless code and flooded with useless design patterns. Use the Unity official example. If you can't find it, I put it here on Github

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    12 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    503 Service Unavailable 0 Answers

    force linking Steam account leaves PlayFab account created with Steam empty and unaccessible 1 Answer

    How do I fix this error regarding PlayFabAuthManager in the Unity PlayFab SDK? 1 Answer

    UE4 Crashing After Login with Email 1 Answer

    Error XboxXASSExchangeFailure: 1306 with XboxOne Authentification 0 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges