Navigation

    brainCloud Forums
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Solved
    • Unsolved
    • Users
    • Groups
    1. Home
    2. Tags
    3. authentication
    Log in to post

    • G

      Execute script when new user is registered
      Cloud Code • cloud code script authentication registration • • Gavin Beard  

      3
      0
      Votes
      3
      Posts
      12
      Views

      G

      @JasonL Thanks, I ended up with this cloudCode: isForceCreate = String(data.callingMessage.forceCreate) == "true"; isNewUser = String(data.message.newUser) == "true"; var response = {}; response.status = 200; response.data = data.message; if (isForceCreate && isNewUser) { var min = 10000000, max = 999999999 prefix = ["player", "user", "member"] const num = Math.floor(Math.random() * (max - min + 1)) + min; const pre = prefix[Math.floor(Math.random() * prefix.length)]; var defaultPlayerName = pre + String(num); var playerStateProxy = bridge.getPlayerStateServiceProxy(); // We are changing the player name on the server. playerStateProxy.updatePlayerName(defaultPlayerName); // And in this API Call's return data. response.data.playerName = pre + String(num); } response; //return the object This works just the way I need
    • J

      Convert Anonymous to username/password
      Client APIs • unity authentication • • Jesper Mansa  

      2
      0
      Votes
      2
      Posts
      7
      Views

      J

      Call AttachUniversalIdentity() method from client lib, the username is uniqueness enforced.
    • B

      Gamesparks Migration - Authentication Questions
      General • unity authentication gamesparks • • Ben Morris  

      1
      0
      Votes
      1
      Posts
      11
      Views

      No one has replied

    • D

      Removing a anonymous external ID?
      General • authentication • • darren zou  

      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • A

      Can I create a chat in Brain Cloud?
      General • unity authentication server chat • • Andrei Baranov  

      2
      0
      Votes
      2
      Posts
      20
      Views

      Y

      I downloaded the BrianCloud plug in for Unreal Engine, I can integrate user authentication, and real-time chat between connected players in a day.
    • A

      Pre Hook for Authenticate Or send Custom content
      Suggestions • authentication prehooks • • Ali Raza  

      4
      0
      Votes
      4
      Posts
      21
      Views

      A

      @JasonL I understand the reason, but please do provide a way to pass custom data to authenticate api so we can use that data to set user displayname or profile picture or soemthing else on post-hook. Without this, we have no choice but to call a seperate call from client (so no beneift of 2 free api inside cloud call)
    • E

      SOLVED [Unity] Authenticated Event ?
      Client APIs • unity authentication • • Eric Welwood  

      2
      0
      Votes
      2
      Posts
      118
      Views

      Paul Winterhalder

      Hmm, actually Eric, authentication only happens when called directly in brainCloud. If you try calling an API and your app isn't authenticated, you'll receive an error - and generally would trigger authentication yourself as part of your error handling. Does that make sense? Paul.