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 Sinnstudio · Jul 07, 2021 at 01:48 AM · Authentication

Unable to run client and server UE 4.26 due to DeveloperSecretKey

Following up on the following thread:

https://community.playfab.com/questions/49557/unable-to-run-client-and-server-ue-426-due-to-deve.html

It seems that the secretkey is not being cleared on session being destroyed.. so every second time you try to log in PIE... you get the following crash since the secret key is present while logging in on the second try:

 
  1. Assertion failed:DeveloperSecretKey.Len()==0||ClientSessionTicket.Len()==0[File:D:\.....Playfab\MyGame\Plugins\PlayFabPlugin\PlayFab\Source\PlayFabCommon/Public/PlayFabAuthenticationContext.h][Line:132]For title security, you cannot set the DeveloperSecretKey on a process which uses a ClientLogin
Comment

People who like this

0 Show 5
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 Sarah Zhang · Jul 08, 2021 at 06:21 AM 0
Share

Could you please tell us which the detailed UE version you used, such as 4.26.1, 4.26.2? Are you using the Blueprint or C++ to develop your project? Do you call the server API and call the client API in one project, or you implement the server and client in two projects but run them at the same time? Could you please provide the detailed reproducing steps so that we can reproduce this issue?

avatar image Sinnstudio Sarah Zhang · Jul 09, 2021 at 03:56 AM 0
Share

Hi @Sarah Zhang,
Thanks for the reply. The UE4 version is 4.26.2. It is a blueprint project. I am setting developer secret key in project settings... then calling login with custom id in blueprints and runtime. It works finally initially. Stop the PIE session and start again and log in again and it will crash. Been a bug for over 6 months and ton of people have reported it.

avatar image Sinnstudio Sinnstudio · Jul 09, 2021 at 07:55 PM 0
Share

@Sarah Zhang, were you able to reproduce it?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Sarah Zhang · Aug 05, 2021 at 02:30 AM

Yes. For clarification, the secret key won't be cleared when the session being destroyed. In the first login, PlayFab stores both Developer Secret key and the Player's Session Ticket to the static variable -- AuthenticationContext. Then in the second login, PlayFab use a checkf method to check whether AuthenticationContext have both Developer Secret key and Session Ticket, if true, the editor will crash. In our design, the Developer Secret Key and Client Session Ticket shouldn't be used at the same time, calling Server APIs and Admin APIs on the clients, or call the Client APIs on the server-side could both cause errors.

Since Client API is designed for players, calling Client API on the server side may cause the limit to be exceeded. Adding Developer Secret Key on the client side means giving players the access to call all management API, if so, it will be quite easy for players to cheat.

So, we add a checkf method to the Marketplace plugin to prevent the potential issues caused by the improper API calls.

We suggest you remove all Developer Secret Key from your client to fix this issue. Or if you are developing a server, please try to use the Server APIs to replace the corresponding Client APIs instead of calling the Client APIs directly on the server.

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 Sinnstudio · Aug 05, 2021 at 02:39 PM 0
Share

There are some things that are needed to be done in clients and some things on server only. This is a bug since the crash doesn't happen on the first attempt. It just never clears the keys after the first attempt.

avatar image Sarah Zhang Sinnstudio · Aug 06, 2021 at 07:37 AM 0
Share

Our plugin won’t clear up the Developer Secret Key that in the Authentication Context automatically. It’s by design. In any case, please do not set up the Developer Secret Key in your project, then call Client API methods.

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

    Game experiencing issue logging in with steam 1 Answer

    Weird Bug on Login with Email: "Service Unavailable" 1 Answer

    Using DisplayName parameter in registration request does not check if unique 1 Answer

    Issue with LoginWithGameCenter in Unreal Engine 4 0 Answers

    The checkboxes on the Apple add-on do not work 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