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

fix: fix auth api #21

Merged
merged 1 commit into from
Mar 23, 2024
Merged

fix: fix auth api #21

merged 1 commit into from
Mar 23, 2024

Conversation

richardli1598
Copy link
Contributor

@richardli1598 richardli1598 commented Mar 22, 2024

Fixes #none

Proposed Changes

  • fix: fix auth api

test:

  1. get token
curl --header "Content-Type: application/json" --request POST  --data '{"username":"openapp","password":"openapp"}' http://localhost:30003/login
  1. get data
curl http://localhost:30003/api/v1/apps/templates -H "Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im9wZW5hcHAiLCJwYXNzd29yZCI6Im9wZW5hcHAiLCJpc3MiOiJvcGVuYXBwIiwiZXhwIjoxNzExMjA1MjQ2LCJuYmYiOjE3MTExMTg4NDYsImlhdCI6MTcxMTExODg0Nn0.Nx56iB9-0rV8G-JTFD7aMSu8YihOitCcAlhSICDVPTo" | jq .

Release Note

fix auth api

Signed-off-by: richardli1598 <opennaslab@gmail.com>
Copy link
Contributor

gitautomator bot commented Mar 22, 2024

Thanks to your contribution, the maintainers will review it as soon as they can!

@gitautomator gitautomator bot added the bug Something isn't working label Mar 22, 2024
Copy link
Contributor

gitautomator bot commented Mar 22, 2024

The release note is either empty or incomplete, please consider: fix auth api

@richardli1598
Copy link
Contributor Author

/approve

@gitautomator gitautomator bot merged commit 77d4161 into main Mar 23, 2024
2 checks passed
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.

1 participant