-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 auth endpoint not working? #1298
Comments
Hey @andreasotto, the
Are you requesting directly from your browser? the file exists on the repo. I'm going to take a look at it. |
Yes, the image is missing in the web page when the API is accessed with a Am 09.11.2016 5:01 nachm. schrieb "Welling Guzmán" <notifications@github.com
Hey @andreasotto https://github.com/andreasotto, the Additionally the .svg image from the html content in the page above is Are you requesting directly from your browser? the file exists on the repo — |
Weird, can you confirm that you have that the file exists on your filesystem? and can you show me the 404 not found requests? |
Well, the file is actually there in the assets/img dir - but the installation path (subdirectory in the hosts root folder) is missing in the file's URL in the resulting webpage. Showing the image probably will work only if directus was installed at root level, and the file will be broken if not installed at root level. |
@andreasotto understood, it makes sense. Also were you able to use the request token api endpoint correctly? |
Yes, the request token request works. From the documentation first it wasn't clear to me, that it has to be a POST request. I thought when logged in (active session) it would be possible to request the token with a GET request too. |
No, it's not possible, when logged in, you can go to you user page and get it from there. I will close the ticket as the broken link was fixed and I will add a note in the documentation about the |
In current development build the API endpoint
/api/1/auth/request-token
seems not to work (404 "Sorry, this page isn't available"). How to get an auth token?Update: It's working from a curl request with credentials (but not from a browser request while logged in)
Additionally the .svg image from the html content in the page above is missing (broken link).
The text was updated successfully, but these errors were encountered: