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

Devices by oauth2 token #10708

Open
Nypiaka opened this issue May 3, 2024 · 0 comments
Open

Devices by oauth2 token #10708

Nypiaka opened this issue May 3, 2024 · 0 comments
Assignees
Labels
question generic question

Comments

@Nypiaka
Copy link

Nypiaka commented May 3, 2024

Is it possible to somehow get a list of user devices through the API with only a jwt oauth2 token? In short, I have a system of 3 services, one of which is ThingsBoard. The first service is authorized through Keycloak, receives a jwt token and goes to the second. The second one wants to use this token to log in to ThingsBoard via Keycloak and get a list of user devices that are authorized by the same Keycloak account in ThingsBoard. How can this be done better? So far, I haven’t come up with anything smarter than writing a separate controller that accepts a token, decodes it, collects an OAuth2AuthenticationToken from it, and only through it receives the user and his devices.

@Nypiaka Nypiaka added the question generic question label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question generic question
Projects
None yet
Development

No branches or pull requests

2 participants