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

Swagger UI contains link having incorrect URL (related to obtaining an access token) #1361

Closed
eecavanna opened this issue Aug 22, 2024 · 3 comments
Assignees
Labels
type: bug Something isn't working X SMALL Less than 1 day

Comments

@eecavanna
Copy link
Collaborator

I don't know what the author's intention was—in other words, I don't know what information he or she intended to link to.

Screenshot of link (in dev environment): https://data-dev.microbiomedata.org/api/docs

image

When I click on that link, I end up at this page: https://data-dev.microbiomedata.org/user

image

In other words, I "must log in" to view the page where I went to learn how to log in. 🐔 🥚

@eecavanna eecavanna added type: bug Something isn't working X SMALL Less than 1 day labels Aug 22, 2024
@pkalita-lbl
Copy link
Collaborator

Haha yes that was the author's (a.k.a. my) intention 😁

If you see the "You must log in to view this page" message at https://data-dev.microbiomedata.org/user I would expect you to log into the portal in the usual way (the "ORCID Login" button in the header). Then you should be able to access https://data-dev.microbiomedata.org/user and get the necessary token.

Perhaps the "You must log in..." message should contain a link to initiate the portal login process?

@eecavanna
Copy link
Collaborator Author

Thank you! Once I was logged into the Data Portal via the "ORCID Login" button, I was able to access that /user page.

image

(Then, by following the instructions on that /user page, I was able to fetch my user information from /api/me.)


Perhaps the "You must log in..." message should contain a link to initiate the portal login process?

I think so. I'll close this ticket and open a new one about doing that.

@eecavanna
Copy link
Collaborator Author

Here's a link to the newly-created issue (unassigned): #1362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working X SMALL Less than 1 day
Projects
Status: ✅ Done
Status: Done
Development

No branches or pull requests

2 participants