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

Bug: Domain retrieval for domain members (not the owner) fails with authorisation error #2217

Open
SammyOina opened this issue May 6, 2024 · 0 comments
Labels

Comments

@SammyOina
Copy link
Contributor

SammyOina commented May 6, 2024

What were you trying to achieve?

Retrieve a domain by a domain member account using the sdk

What are the expected results?

Retrieve the domain successfully

What are the received results?

failed authorization

Method retrieve_domain for domain id 389efe9b-2e7a-41a1-9ce8-1f910baa93bd took 4.297028ms to complete with error: failed to perform authorization over the entity : failed to perform authorization over the entity : failed to perform authorization over the entity : PERMISSIONSHIP_NO_PERMISSION.

Steps To Reproduce

Create domain
invite user to domain
accept invitation
login to domain as the invited user

token, err := svc.OrganizationLogin(
			mgsdk.Login{
				DomainID: req.OrgID,
			},
			req.Token,
		)

retrieve domain

s.Token = token.AccessToken
domain, err := uis.mgsdk.Domain(s.Domain.ID, s.Token)

In what environment did you encounter the issue?

testing on prism UI with magistrala v0.14

Additional information you deem important

No response

@SammyOina SammyOina added the bug label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant