TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
936 stars 302 forks source link

Cannot add application error:pkg/auth/rights:no_user_rights #7098

Open tanawat369 opened 1 month ago

tanawat369 commented 1 month ago

Summary

Hello i try to add application but found error

Steps to Reproduce

i send a request to http://192.168.10.100/api/v3/users/rvp-admin1/applications { "application": { "ids": { "application_id": "test123" }, "name": "My Test Application", "description": "Application for my test devices", "network_server_address": "thethings.example.com", "application_server_address": "thethings.example.com", "join_server_address": "thethings.example.com" } }

Current Result

response { "code": 7, "message": "error:pkg/auth/rights:no_user_rights (no rights for user rvp-admin1)", "details": [ { "@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails", "namespace": "pkg/auth/rights", "name": "no_user_rights", "message_format": "no rights for user {uid}", "attributes": { "uid": "rvp-admin1" }, "correlation_id": "6130c2dbc87f41dab6675b13ff97aa7d", "code": 7 } ] }

image

Expected Result

i want to add application

Relevant Logs

No response

URL

No response

Deployment

The Things Stack Enterprise (self-hosted)

The Things Stack Version

No response

Client Name and Version

No response

Other Information

No response

Proposed Fix

No response

Contributing

Validation

Code of Conduct

KrishnaIyer commented 1 month ago

i send a request to http://192.168.10.100/api/v3/users/rvp-admin1/applications

How are you sending the request? Via the CLI or API? How are you setting authentication for the call?

tanawat369 commented 1 month ago

i send a request to http://192.168.10.100/api/v3/users/rvp-admin1/applications

How are you sending the request? Via the CLI or API? How are you setting authentication for the call?

i send a request to http://192.168.10.100/api/v3/users/rvp-admin1/applications

How are you sending the request? Via the CLI or API? How are you setting authentication for the call?

test via postman and use bearer authen i use ttn open source Version

KrishnaIyer commented 1 month ago

Ok and what rights are you assigning to the API key?

Tertoey commented 1 month ago

Ok and what rights are you assigning to the API key?

Grant all current and future rights now i can add application via path api/v3/organizations/rvp-admin1/applications

KrishnaIyer commented 1 month ago

Ok so the issue is resolved?