tag:blogger.com,1999:blog-5874979429188093780.post4000017476569157736..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Oracle JET and ADF BC REST Basic Authentication Andrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5874979429188093780.post-66415421420671561692018-05-03T11:14:43.756+02:002018-05-03T11:14:43.756+02:00Hi Andrejus,
I would like to pass an Authorization...Hi Andrejus,<br />I would like to pass an Authorization JWT token in all my REST calls.<br />I tried the following code and it works fine but when I call collection.refresh, I get 403 error again.<br />this.empCollection.fetch({headers: {"Authorization": 'Bearer XXXXXXXXXXXXX'}});<br />Can you tell me how to add Authorization header in oj.Collection so that all operations pass this Authorization token?<br /><br />Regards,<br />Sarah<br /><br />Sarah Justinahttps://www.blogger.com/profile/00096679432815650745noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-45326456308021693632016-12-13T21:02:04.852+01:002016-12-13T21:02:04.852+01:00Probably API was changed in newer JET version. It ...Probably API was changed in newer JET version. It worked before. Thanks.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-36280042796372161592016-12-13T20:59:00.799+01:002016-12-13T20:59:00.799+01:00Hi Andrejus,
I have resolved the issue. The paren...Hi Andrejus,<br /><br />I have resolved the issue. The parenthesis missing in the code:<br /><br />Wrong: self.collection.refresh();<br /><br />Correct: self.collection().refresh();<br /><br />It is working fine after putting the parenthesis.<br /><br />Thanks<br /><br />Ashok<br /><br />Ashokhttps://www.blogger.com/profile/10128889984714104147noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-41023638237813579382016-12-13T20:50:43.021+01:002016-12-13T20:50:43.021+01:00Hi Andrejus,
I have downloaded your JETCRUDAPP_v5...Hi Andrejus,<br /><br />I have downloaded your JETCRUDAPP_v5. It is working fine with authentication. However, For Salary Validation occurs for update operation, I am getting the following error:<br /><br />main.js:128 Uncaught TypeError: self.collection.refresh is not a function<br /> at Model.error (http://localhost:8383/JETCRUDApp/js/main.js:128:49)<br /><br />Note: If I comment //self.collection.refresh then the salary validation message shown, but the collection is not refreshed.<br /><br />Could you please help me to resolve this issue.<br /><br />Thanks<br /><br />AshokAshokhttps://www.blogger.com/profile/10128889984714104147noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-59451592285944959612016-07-12T16:47:47.482+02:002016-07-12T16:47:47.482+02:00Check update related to your question: http://andr...Check update related to your question: http://andrejusb.blogspot.lt/2016/07/adf-bc-rest-authentication-with.htmlAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-14400802442899199772016-06-16T12:30:45.169+02:002016-06-16T12:30:45.169+02:00Im studying this problem. Im studying this problem. Andrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-89791812826464559802016-06-16T11:13:23.013+02:002016-06-16T11:13:23.013+02:00You state that using HTTPS is secure (which is tru...You state that using HTTPS is secure (which is true for the headers) but you need to store the credentials client side because you need them for every request.<br />As far as I know this can't be done in a secure way ?Anonymousnoreply@blogger.com