8000 api/cloud: include short tokens in deregister query by Danielius1922 · Pull Request #72 · iotivity/iotivity-lite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

api/cloud: include short tokens in deregister query #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 19, 2021

Conversation

Danielius1922
Copy link
Member

Some older cloud implementations expect the deregister
requests to have access token in the query otherwise
they regard the request as invalid. To support such
implementations we append the token to query if
the overall size of the request header is shorter
or equal to COAP_MAX_HEADER_SIZE.

Some older cloud implementations expect the deregister
requests to have access token in the query otherwise
they regard the request as invalid. To support such
implementations we append the token to query if
the overall size of the request header is shorter
or equal to COAP_MAX_HEADER_SIZE.
@Danielius1922 Danielius1922 requested a review from jkralik August 13, 2021 09:35
if (oc_string(ctx->store.ci_server) && conv_cloud_endpoint(ctx) == 0 &&
cloud_access_deregister(ctx->cloud_ep,
oc_string(ctx->store.uid),
0,
access_token,
/*device*/0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why there is 0 instead of the device?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure, but looking in my original commit ( c91cba1 ) it seems that the value for device has been always zero.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you change it to the device?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which value shoud I use though, ctx->store.device?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Member
@jkralik jkralik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls just use the device instead of 0 and @WAvdBeek as a reviewer.

@Danielius1922 Danielius1922 requested a review from WAvdBeek August 18, 2021 16:57
@WAvdBeek WAvdBeek merged commit 8f82631 into jakarta Aug 19, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2021
@Danielius1922 Danielius1922 deleted the feature/token-in-sign-off branch August 20, 2021 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
31D9
0