Unreal Engine: 我无法使用 EOS 登录

Unreal Engine: I cant login with EOS

我正在试一试 EOS。我在尝试登录时 运行 遇到错误。我在在线开发门户中设置了一个产品和应用程序。不知道我是否一切都正确。我将所有 ID 和秘密值输入到设置中 EOS 插件区域的适当位置。

我的 DefaultEngine.ini

里有这个
[OnlineSubsystemEOS]
bEnabled=true
[OnlineSubsystem]
DefaultPlatformService=EOS
[/Script/Engine.GameEngine]
+NetDriverDefinitions=. (DefName="GameNetDriver",DriverClassName="OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")
[/Script/OnlineSubsystemEOS.NetDriverEOS]
bIsUsingP2PSockets=true

这就是我登录的方式

FOnlineAccountCredentials Credentials;
Credentials.Id = FString();
Credentials.Token = FString();
Credentials.Type = FString("accountportal");

Identity->OnLoginCompleteDelegates->AddUObject(this, &UEOSLibrary::OnLoginComplete);
Identity->Login(0, Credentials);

当我点击登录时,我会打开一个网页,询问我是否允许访问。我点击接受,发生的事情是永远不会调用回调来指示完成。日志表明我可能遗漏了一些东西。什么验证码在哪里??

LogEOSSDK: LogEOSAuth: NewClientToken: Client ClientId: xyz...kJK Access[Expires: 2022.02.22-22.32.12 Remaining: 7200.67]  State: Valid
LogEOSSDK: LogEOSAuth: xyz...kJK result: eyJ...cwQ
LogEOSSDK: LogEOSAuth: Launching platform browser for account portal
LogEOSSDK: Warning: LogEOS: Error response received from backend. ServiceName=[OAuth], OperationName=[TokenGrant], Url=[<Redacted>], HttpStatus=[400], ErrorCode=[errors.com.epicgames.account.oauth.authorization_pending], NumericErrorCode=[1012], ErrorMessage=[The authorization server request is still pending as the end user has yet to visit and enter the verification code.], CorrId=[EOS-cuMGvKq4S3GvWUBNVjIbnw-ZJtD_z3YTx62TxiNJ8Yr2g-ug4LfijbR8Cx2eeMp7E3fA]
LogEOSSDK: LogEOSAuth: NewUserToken: User ClientId: xyz...kJK AccountId: 5f2...f59 Access[Expires: 2022.02.22-22.32.23 Remaining: 7200.31] Refresh[Expires: 2022-08-21T20:32:23.313Z Remaining: 15552000.31] State: Valid
LogEOSSDK: LogEOSAuth: GenerateUserAuth success
LogEOSSDK: LogEOSAuth: login/queryuserinfo success
LogEOSSDK: LogEOSAuth: Login Tasks Complete: 0
LogEOSSDK: LogEOSPresence: Updating Presence to Online. LocalUserId=[5f2...f59] RichText=[]

事实证明,您无法成为 运行 成功的游戏。这就是我在做什么。 运行 作为单机游戏,我能够成功登录。