Skip to content

include authToken on requestModule#86

Draft
iurimatias wants to merge 1 commit into
masterfrom
fix_origin_validation
Draft

include authToken on requestModule#86
iurimatias wants to merge 1 commit into
masterfrom
fix_origin_validation

Conversation

@iurimatias

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 21:29

Copilot AI 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.

Pull request overview

This PR updates the SDK’s capability_module.requestModule invocation so the auth/capability token is included in the method arguments (in addition to being passed as the transport-level authToken), aligning the call shape between the sync wrapper and the async auto-requestModule flow.

Changes:

  • Add authToken as the first argument to capability_module.requestModule in LogosAPIConsumer::requestModule.
  • Update LogosAPIClient::invokeRemoteMethodAsync’s chained requestModule call to pass capabilityToken as the first argument.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
cpp/logos_api_consumer.cpp Adjusts the sync requestModule wrapper to include the token in the argument list.
cpp/logos_api_client.cpp Updates the async chained requestModule call to include the token in the argument list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +220 to +222
const QString qAuthToken = QString::fromStdString(authToken);
QVariant result = plugin->callMethod(qAuthToken, QStringLiteral("requestModule"),
QVariantList() << qAuthToken << qOrigin << qTarget, 20000);
Comment thread cpp/logos_api_client.cpp
Comment on lines 183 to +186
capabilityToken,
QStringLiteral("capability_module"),
QStringLiteral("requestModule"),
QVariantList() << origin << objectName,
QVariantList() << capabilityToken << origin << objectName,
Comment thread cpp/logos_api_client.cpp
Comment on lines 183 to +186
capabilityToken,
QStringLiteral("capability_module"),
QStringLiteral("requestModule"),
QVariantList() << origin << objectName,
QVariantList() << capabilityToken << origin << objectName,
@github-actions

Copy link
Copy Markdown

📊 cpp-sdk doc-test report

The real accounts module, run through a logoscore daemon with the whole stack built against this commit of the C++ SDK — rendered alongside the commands actually run and their output (updated each run, commit e7e4384):

Pages can take a minute to update after the run finishes.

@iurimatias iurimatias marked this pull request as draft June 12, 2026 21:40
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