question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CloudCallServiceImpl - call methods setting requester.client.id to #client-id sends response to local device

See original GitHub issue

I just tried using CloudCallServiceImpl to send CONF-V1 requests to a Kura device. It seems to me that there is a bug in that implementation.

On line 122 it sets the requester.client.id to the topic placeholder #client-id. This in turn is send to the remote Kura device which then replaces it with its own client-id when sending the response. Not the intended outcome. This prevents the response from ever being picked up by the sender - it subscribes to the correct topic beforehand (using the same placeholder on line 110.

Before looking into a fix for this - am I missing something here? The problem with fixing this is that the client-id isn’t available inside that implementation.

I’ve tested with manually providing the correct client-id on line 122 and that works properly.

Hints?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dwoodard1commented, Jan 9, 2017

I thought we were breaking the API in 3.0. If so, we should probably just remove it. If not, should fix the Service at is currently broken.

0reactions
cdealticommented, Jun 22, 2017

Closing as all the deprecated API will be removed at the same time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Call Your API Using the Client Credentials Flow - Auth0
This tutorial will help you call your API from a machine-to-machine (M2M) application using the Client Credentials Flow. To learn how the flow...
Read more >
Mule 4 - Client ID Enforcement - DZone Integration
In this article, we discuss how to implement client Id enforcement in a Mule application to better manage our API security.
Read more >
Implementing the client credentials grant type | Apigee Edge
With the client credentials grant type, an app sends its own credentials (the Client ID and Client Secret) to an endpoint on Apigee...
Read more >
OAuth 2.0 for Client-side Web Applications - Google Developers
This document explains how to implement OAuth 2.0 authorization to access Google APIs from a JavaScript web application.
Read more >
How to Use Client Credentials Flow with Spring Security
Learn how to use OAuth 2.0's client credentials grant to communicate between apps secured by Spring Security.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found