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 /
  • API and SDK Questions /
avatar image
Question by Jay Mattis · Jun 24, 2019 at 04:42 PM · CloudScriptapisAccount ManagementAuthentication

Server API for AddGenericId and GetPlayFabIDsFromGenericIDs

Hi,

We're working on behalf of a client, implementing PlayFab authentication for a third-party service that is not natively supported by PlayFab. Right now, our flow looks like this:

1. Client temporarily logs in using LoginWithCustomId with a temporary ID like "anonymous" just so that it can execute cloud script.

2. Client then issues an ExecuteCloudScript request to validate the user's session with the third party service.

3. The cloud script handler calls out to the third party service to validate the user and then, if successful, executes LoginWithServerCustomId and returns the resulting session ticket.

4. The client uses this session ticket moving forward to perform all actions as the newly authenticated user.

We've run into a number of issues but the biggest obstacle seems to be that there is no way to later query a PlayFabId for a given ServerCustomId. Ultimately, we'd like to use AddGenericId/GetPlayFabIDsFromGenericIDs for this purpose but it's not reasonable for the client to be authoritative over the account linking data and there doesn't seem to be any way to call these from CloudScript. Are we missing something or are there any other approaches we could take?

Thanks,

Jay

Comment
Timothy Rapp

People who like this

1 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 SethDu · Jun 27, 2019 at 06:32 AM

ServerCustomId is designed for server side login, and that is why it is in Server APIs. If you want to query a PlayFabId on the server side/ Cloud Script, LoginWithServerCustomId is a feasible solution.

Comment

People who like this

0 Show 0 · 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

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    AddUsernamePassword requires both email and username while Other APIs do not? 1 Answer

    Google account IDs don't match 1 Answer

    No confirmation email is received. 5 Answers

    Azure Function API Policy 1 Answer

    Saving data in Unity on Pause/Quit/Lose Focus 1 Answer

    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