Skip to content
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

Questions about scope #2

Open
caimaoy opened this issue May 24, 2022 · 1 comment
Open

Questions about scope #2

caimaoy opened this issue May 24, 2022 · 1 comment

Comments

@caimaoy
Copy link

caimaoy commented May 24, 2022

I see scope in JWT, but in your code there is nothing about it.
I've use swagger to generate the client code, but I cannot invoke POST /v1/devices, while I can invoke GET /v1/devices

swagger_client.rest.ApiException: (405)
Reason: Not Allowed
HTTP response headers: HTTPHeaderDict({'Server': 'daiquiri/3.0.0', 'Date': 'Tue, 24 May 2022 07:57:30 GMT', 'Content-Type': 'application/json', 'Content-Length': '266', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains', 'X-Apple-Jingle-Correlation-Key': 'xxx', 'x-daiquiri-instance': 'daiquiri::pv50p00it-hyhk12043901:7987:22RELEASE62:daiquiri-amp-all-shared-ext-001-pv'})
HTTP response body: b'{\n\t"errors": [{\n\t\t"status": "405",\n\t\t"code": "METHOD_NOT_ALLOWED",\n\t\t"title": "The request method is not valid for the resource path.",\n\t\t"detail": "The request method used for this request is not valid for the resource path. Please consult the documentation."\n\t}]\n}'
@caimaoy
Copy link
Author

caimaoy commented May 24, 2022

After reading your code, I found that scope is not requeired.
But I still don't know how to set the scope of POST /v1/devices.

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

No branches or pull requests

1 participant