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

/api/v1/workspace/profile interface returns owner is always user/1 #4231

Closed
quanru opened this issue Dec 25, 2024 · 5 comments
Closed

/api/v1/workspace/profile interface returns owner is always user/1 #4231

quanru opened this issue Dec 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@quanru
Copy link
Contributor

quanru commented Dec 25, 2024

Describe the bug

Even if it's not the token of user/1 in 0.23.0

Steps to reproduce

On the administrator's member management page, create a new user, then log in with that user and request the above interface, which results in an error.

The version of Memos you're using

0.23.0

Screenshots or additional context

No response

@quanru quanru added the bug Something isn't working label Dec 25, 2024
@johnnyjoygh
Copy link
Collaborator

The response is the workspace-level information. And owner should always be the first admin user not the current session user.

@quanru
Copy link
Contributor Author

quanru commented Dec 26, 2024

How to use token to get the id of the current user

@johnnyjoygh
Copy link
Collaborator

GetAuthStatus returns the current auth status of the user.​
https://memos.apidocumentation.com/reference#tag/authservice/POST/api/v1/auth/status

@quanru
Copy link
Contributor Author

quanru commented Dec 26, 2024

image

@RoccoSmit
Copy link
Contributor

RoccoSmit commented Dec 27, 2024

@quanru , /v1/auth/status requires a POST request.
Change from GET to POST and it should work for you

@boojack boojack closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
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

No branches or pull requests

4 participants