diff --git a/Source/Immutable/Private/Immutable/Actions/ImtblPassportInitializationAsyncAction.cpp b/Source/Immutable/Private/Immutable/Actions/ImtblPassportInitializationAsyncAction.cpp index 0123cee..280e7a9 100644 --- a/Source/Immutable/Private/Immutable/Actions/ImtblPassportInitializationAsyncAction.cpp +++ b/Source/Immutable/Private/Immutable/Actions/ImtblPassportInitializationAsyncAction.cpp @@ -6,7 +6,7 @@ #include "Immutable/ImmutableSubsystem.h" -UImtblPassportInitializationAsyncAction* UImtblPassportInitializationAsyncAction::InitializePassport(UObject* WorldContextObject, const FString& ClientID, const FString& RedirectUri, const FString& LogoutUri, const FString& Environment) +UImtblPassportInitializationAsyncAction* UImtblPassportInitializationAsyncAction::InitializePassport(UObject* WorldContextObject, const FString& ClientID, const FString& RedirectUri, const FString& LogoutUri, const FString& Environment, bool IsSilentLogout) { UImtblPassportInitializationAsyncAction* PassportInitBlueprintNode = NewObject(); @@ -15,6 +15,7 @@ UImtblPassportInitializationAsyncAction* UImtblPassportInitializationAsyncAction PassportInitBlueprintNode->LogoutUri = LogoutUri; PassportInitBlueprintNode->Environment = Environment; PassportInitBlueprintNode->WorldContextObject = WorldContextObject; + PassportInitBlueprintNode->IsSilentLogout = IsSilentLogout; return PassportInitBlueprintNode; } @@ -35,7 +36,7 @@ void UImtblPassportInitializationAsyncAction::DoInit(TWeakObjectPtrGetPassport(); // Run Initialize - Passport->Initialize(FImmutablePassportInitData{ClientId, RedirectUri, LogoutUri, Environment}, UImmutablePassport::FImtblPassportResponseDelegate::CreateUObject(this, &UImtblPassportInitializationAsyncAction::OnInitialized)); + Passport->Initialize(FImmutablePassportInitData{ClientId, RedirectUri, LogoutUri, Environment, IsSilentLogout}, UImmutablePassport::FImtblPassportResponseDelegate::CreateUObject(this, &UImtblPassportInitializationAsyncAction::OnInitialized)); } void UImtblPassportInitializationAsyncAction::OnInitialized(FImmutablePassportResult Result) diff --git a/Source/Immutable/Public/Immutable/Actions/ImtblPassportInitializationAsyncAction.h b/Source/Immutable/Public/Immutable/Actions/ImtblPassportInitializationAsyncAction.h index b0c9ad8..e337dca 100644 --- a/Source/Immutable/Public/Immutable/Actions/ImtblPassportInitializationAsyncAction.h +++ b/Source/Immutable/Public/Immutable/Actions/ImtblPassportInitializationAsyncAction.h @@ -20,7 +20,7 @@ class IMMUTABLE_API UImtblPassportInitializationAsyncAction : public UImtblBluep public: UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", BlueprintInternalUseOnly = "true"), Category = "Immutable") - static UImtblPassportInitializationAsyncAction* InitializePassport(UObject* WorldContextObject, const FString& ClientID, const FString& RedirectUri, const FString& LogoutUri, const FString& Environment); + static UImtblPassportInitializationAsyncAction* InitializePassport(UObject* WorldContextObject, const FString& ClientID, const FString& RedirectUri, const FString& LogoutUri, const FString& Environment, bool IsSilentLogout); virtual void Activate() override; @@ -29,6 +29,7 @@ class IMMUTABLE_API UImtblPassportInitializationAsyncAction : public UImtblBluep FString RedirectUri; FString LogoutUri; FString Environment; + bool IsSilentLogout; UPROPERTY(BlueprintAssignable) FPassportInitializationOutputPin Initialized; diff --git a/Source/Immutable/Public/Immutable/ImmutableDataTypes.h b/Source/Immutable/Public/Immutable/ImmutableDataTypes.h index 90167ed..46a0b54 100644 --- a/Source/Immutable/Public/Immutable/ImmutableDataTypes.h +++ b/Source/Immutable/Public/Immutable/ImmutableDataTypes.h @@ -55,6 +55,9 @@ struct IMMUTABLE_API FImmutablePassportInitData UPROPERTY() FString environment = ImmutablePassportAction::EnvSandbox; + UPROPERTY() + bool isSilentLogout = false; + UPROPERTY() FImmutableEngineVersionData engineVersion;