-
Notifications
You must be signed in to change notification settings - Fork 40
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
Ajax request authentication #5
Comments
You are correct. I'll try to work on this still today. |
Are you available to do some tests on a RC ? |
If so, the release candidate is in the DIST folder, all files that end with -RC. The ajax configuration should now be as follows: `
` where Let me know if you give it a try. |
Thanks. So, I'm having 2 issues currently:
|
Sorry, my bad ! Was referencing the config object wrongly. Could you please give it a go again ? I'm really sorry for this, but I've got no way of performing these tests right now. |
Haha, no worries. Appreciate your contributions. So, I'm still getting the same errors. Here is my latest attempt at 'config' variables. Let me know what looks off to you:
|
I've actually got it working with the new RC , using your example :
And then, on my test WS I've received the following headers:
On this one I'm using GET:
And the response was :
I can bake a proper release , just in case there is any problem with the RC files, for you to test out. It wouldn't be a problem. Let me know! |
In fact I've just updated both this lib and the vue1 version of this lib with this new update and made a release. Version 1.1.7 works as described in my last comment. Please do let me know if you find problems with it. If all is good lets close this ticket |
So, made progress. Authorization is now successful, and per DEV TOOLS, data is being returned from the server in the required format:
However, it doesn't seem to trigger 'ajaxLoadedEvent'. Thoughts? |
So, a call is being made, values returned and then the data is not being loaded on the table? Can you provide a small example of your tables complete configuration ? (Including column configurations, etc) If you can provide an example return from the server aswell, I can make my test WS return that exact data and try to reproduce the problem over here. |
Correct. This is the trimmed response data being returned from the server: { . . . . . .REMAINDER OF TRIMMED DATA . . . . ]} My column config is as such:
I am returning more columns than I use. Is that a problem? Otherwise, I'm using appropriate table field names, etc. |
Nop, returning more than you are using should be alright. |
I just gave it a test drive and it worked without a problem. My configuration is as follows :
The return I'm making is :
The result is : I tried it with both GET and POST methods. On the javascript console do you see any errors ? Is there any more info you can provide me with so I can give you a hand? Are all of these settings defined ?
|
These are the only items I have defined:
The only error I'm receiving is a Javascript rendering error (but I don't think this is related to the issue):
I see nothing else that's different. The server is still returning the appropriate data, and |
So, I'm finding that if I If |
Hi! Ok, I think I have an idea of what is going on. Tomorrow I'll start working on it first thing in the morning ( GMT here ) and will have some answers and possibly a new release with this fixed. So sorry about this! |
There was a particular case, which was : Method GET and Delegate False that would lead to axiosConfig not being used. Can you confirm that this was your case ? With Method POST axiosConfig should have worked fine with either delegate true or false. |
Release 1.1.8 ready with this issue fixed. |
So Auth now occurs correctly in all cases, and I'm still receiving data from the server. However, the table still doesn't render on |
I'm on vacation for the next 2 weeks but I'll try to give it a look tomorrow at some point. |
Hi, have you made any progress on this? I'm also experiencing not getting any data on |
Hi ! Got back from vacations. Will give a look at this this week. |
help, not date ajax http. |
Just fixed this bit. Will release still this week |
Need the ability to send custom headers for the axios instance used by the table. Correct me if I'm wrong, but as it stands, the current implementation assumes no authentication is required to retrieve search results.
The text was updated successfully, but these errors were encountered: