Skip to content

Pierrep/bcloud 14842 - #343

Open
pierrepbitheads wants to merge 5 commits into
developfrom
pierrep/BCLOUD-14842
Open

pierrepbitheads wants to merge 5 commits into
developfrom
pierrep/BCLOUD-14842

Conversation

@pierrepbitheads

@pierrepbitheads pierrepbitheads commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

BCLOUD-14842: Added App Check token and asynchronous token provider to C++ library

…. Also added missing authenticateEpicGames, attachEpicGamesIdentity, mergeEpicGamesIdentity and detachEpicGamesIdentity.
# Conflicts:
#	include/braincloud/BrainCloudIdentity.h

@michaelc-bitheads michaelc-bitheads left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with C#, do we have logs and success/failure callbacks?


#include <string>
#include <map>
#include <functional>

@michaelc-bitheads michaelc-bitheads Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not use the existing callback objects?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Authentication still uses the existing IServerCallback. These new callbacks handle fetching the App Check token before authentication is sent, so their inputs differ from a server response. We can follow the existing callback-object pattern with dedicated App Check interfaces instead of std::function.

Comment thread include/braincloud/BrainCloudAuthentication.h
Comment thread include/braincloud/OperationParam.h

#include "braincloud/BrainCloudAuthentication.h"
#include <mutex>
#include <chrono>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely we can track the time more simply than having to spin up a new thread?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new thread is created here. We store the start time with std::chrono::steady_clock and check elapsed time in the existing callback loop. The mutex protects the result if the token provider completes on another thread. We could use an existing SDK timing utility for consistency, but the timeout already works by polling.

Comment thread README.md

JsonCpp has recently been made a submodule (as of brainCloud 4.15) so if pulling or changing branches the existing folder lib/jsoncpp-1.0.0/ should be deleted or there will be git errors.

### Asynchronous App Check token provider

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same verbosity concern here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants