Skip to content

Commit a4d3ba0

Browse files
Updated from pipeline, Version : 23.5.2
1 parent 5d3270b commit a4d3ba0

File tree

6 files changed

+34
-8
lines changed

6 files changed

+34
-8
lines changed

.variables

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export LEVEL=CRITICAL
22
export REPO_NAME=justice-unreal-sdk-plugin
3-
export WORKDIR=/tmp/pipelines/4694888083/937992268/
4-
export COMMIT_HASH=c70bcde039015a4603ca597ae2617a9dffec6c0d
5-
export GIT_HASH=c70bcde039015a4603ca597ae2617a9dffec6c0d
6-
export VERSION=23.5.1
7-
export REVISION_ID=23.5.1
3+
export WORKDIR=/tmp/pipelines/4735375464/944595611/
4+
export COMMIT_HASH=db824c0010028c10f0fe1bfad98d8559e2c3caf9
5+
export GIT_HASH=db824c0010028c10f0fe1bfad98d8559e2c3caf9
6+
export VERSION=23.5.2
7+
export REVISION_ID=23.5.2
88
9-
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDIzLjUuMSAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='
9+
export COMMIT_MESSAGE_BASE64='Y2hvcmUocmVsZWFzZSk6IDIzLjUuMiAtIGNvbW1pdGVkIGFuZCB0YWdnZWQgYnkgSmVua2lucwo='

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [23.5.2](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/23.5.2%0D23.5.1) (2023-07-25)
6+
7+
8+
### Features
9+
10+
* **launcher:** read command line arguments for Justice Auth Code ([2bd030f](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/commits/2bd030f4584d317014f63ae6a6149a52de7efebc))
11+
512
### [23.5.1](https://bitbucket.org/accelbyte/justice-unreal-sdk-plugin/branches/compare/23.5.1%0D23.5.0) (2023-07-20)
613

714

Source/AccelByteUe4Sdk/Private/Api/AccelByteUserApi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void User::LoginWithLauncher(const FVoidHandler& OnSuccess
289289
{
290290
FReport::Log(FString(__FUNCTION__));
291291

292-
const FString AuthorizationCode = Environment::GetEnvironmentVariable(TEXT("JUSTICE_AUTHORIZATION_CODE"), 1000);
292+
FString AuthorizationCode = FAccelByteUtilities::GetAuthorizationCode();
293293

294294
FinalPreLoginEvents(); // Clears CredentialsRef post-auth info, inits schedulers
295295

Source/AccelByteUe4Sdk/Private/Core/AccelByteUtilities.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,19 @@ void FAccelByteUtilities::SetAuthTrustId(const FString& AuthTrustId)
690690
FPlatformMisc::SetStoredValue(AccelByteStored(), AccelByteStoredSectionIAM(), AccelByteStoredKeyAuthTrustId(), AuthTrustId);
691691
}
692692

693+
const FString AuthorizationCodeArgument = TEXT("--AB_AUTH_CODE=");
694+
695+
FString FAccelByteUtilities::GetAuthorizationCode()
696+
{
697+
FString AuthorizationCode{};
698+
FParse::Value(FCommandLine::Get(), *AuthorizationCodeArgument, AuthorizationCode);
699+
if (AuthorizationCode.IsEmpty())
700+
{
701+
AuthorizationCode = Environment::GetEnvironmentVariable(TEXT("JUSTICE_AUTHORIZATION_CODE"), 1000);
702+
}
703+
return AuthorizationCode;
704+
}
705+
693706
void FAccelByteNetUtilities::GetPublicIP(const THandler<FAccelByteModelsPubIp>& OnSuccess, const FErrorHandler& OnError)
694707
{
695708
FReport::Log(FString(__FUNCTION__));

Source/AccelByteUe4Sdk/Public/Core/AccelByteUtilities.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ class ACCELBYTEUE4SDK_API FAccelByteUtilities
417417

418418
static void SetAuthTrustId(const FString& AuthTrustId);
419419

420+
/// <summary>
421+
/// Get Authorization Code.
422+
/// </summary>
423+
/// <returns>Return authorization code either from command line argument or environment variable</returns>
424+
static FString GetAuthorizationCode();
425+
420426
/// Parse command line to obtain an argument that:
421427
/// * intialized by dash (-)
422428
/// * contain a value that following equal sign (=)

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "23.5.1"
2+
"version": "23.5.2"
33
}

0 commit comments

Comments
 (0)