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 /
  • General Discussion /
avatar image
Question by Robyn To · May 04 at 03:48 PM · multiplayerunreal

UE4 Unreal correct secret key config for server

Hello!

What is the recommended way to set the developer secret key for the server in Unreal?

I have seen these posts: 1, 2, and 3

Removing the developer secret key by hand for any client build is not feasible for our pipeline.

Setting the secret key in BP with SetPlayFabSettings in server-only code causes the Unreal engine crash where secret key and client login cannot exist together.

Open to suggestions! I haven't been able to find the answers I need

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

Answer by Rick Chen · May 05 at 10:03 AM

The 2nd thread you found has provided 3 correct ways to set the secret key for server in Unreal:

  • You can include the secret key in DefaultEngine.ini with this format

[/Script/PlayFabCommon.PlayFabRuntimeSettings]
TitleId=XX123
DeveloperSecretKey=ASecretKeyThatNeedsRemovingOnClientBuilds

  • You can define them in the setPlayFabSettings Blueprint.
  • You can also navigate to [Edit] -> [Project Settings] -> [Plugins] -> [PlayFab] to set them in the Editor.

The client build and the server build should be separated. Why is removing the secret key by hand for any client build is not feasible for your pipeline? What is your pipeline?

You should not use the client login APIs in server-only code as those are client APIs.

Comment

People who like this

0 Show 2 · 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 Robyn To · May 05 at 03:48 PM 0
Share

We are not using client login APIs in server-only code, and our pipelines should be automated for all team members

avatar image Rick Chen ♦ Robyn To · May 06 at 03:01 AM 0
Share

Then what are the issues for the above solutions? Could you describe them in detail?

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

    11 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

    Related Questions

    Unreal Engine Multiplayer Session 1 Answer

    UE4 GSDK Server always returning Unhealthy 1 Answer

    UE4 and Playfab Dedicated server 2 Answers

    UE4 Dedicated Server running on docker container exits with code 1 1 Answer

    How to make dedicated server fo multiplayer game 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