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

patch: update auth wrphandler to be webpa compliant #162

Merged

Conversation

denopink
Copy link
Contributor

- if we want webpa to use the device response status code, the device has to put the status code in its payload as a json https://github.com/xmidt-org/tr1d1um/blob/a8744affcbfa79ef19d018585a93c31843e0e7b2/translation/transport.go#L214-L216
@denopink denopink requested review from schmidtw and piccione99 June 18, 2024 21:01
@denopink denopink self-assigned this Jun 18, 2024
@denopink denopink added the bug Something isn't working label Jun 18, 2024

code := int64(statusCode)
response.Status = &code
response.Payload = []byte(fmt.Sprintf(`{statusCode: %d, message:"Partner(s) '%s' not allowed. Allowed: '%s'"}`, code, got, want))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@schmidtw schmidtw merged commit b7b32a1 into main Jun 18, 2024
16 checks passed
@schmidtw schmidtw deleted the denopink/patch/make-auth-handler-webpa-statuscode-compliant branch June 18, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants