NeoMatrix 3 Posted April 4, 2022 Share Posted April 4, 2022 Can someone check this for me please... I'm trying to update a password via the API. When I run the curl command to update - I see on the dashboard that the pass has been updated but it does not "take affect". ie - user1 has no password. I update password via API, get confirmation on the dashboard but user still has blank password. I'm using the latest stable Emby in a docker environment. Can someone check to see if this still works? Thanks for reading...... Link to comment Share on other sites More sharing options...
rbjtech 4349 Posted April 4, 2022 Share Posted April 4, 2022 I'm not 100%, but have a feeling this function needs to be done via an HTTPS connection ? Link to comment Share on other sites More sharing options...
Luke 37289 Posted April 4, 2022 Share Posted April 4, 2022 Hi, how does it compare when using the web app? Link to comment Share on other sites More sharing options...
NeoMatrix 3 Posted April 4, 2022 Author Share Posted April 4, 2022 Just in the office - Web app works perfectly!! What confuses me is that the dashboard recognises an update to password but nothing happens..... Ill be home in an hour if you need anything done from my side. Link to comment Share on other sites More sharing options...
Luke 37289 Posted April 7, 2022 Share Posted April 7, 2022 In that case I would compare what your requests are doing to what the web app is doing by following the network requests in the browser debugger. You can also look at what our javascript libraries are doing for comparison: https://github.com/MediaBrowser/Emby.ApiClient.Javascript/blob/master/apiclient.js#L3229 Link to comment Share on other sites More sharing options...
Cheesegeezer 3089 Posted April 11, 2022 Share Posted April 11, 2022 ApiClient is broken at the minute, @chef was using it for his "PosterApp" utility and it was working fine to authenticate a user and create an App Session. Then we shared the code to set up User Authentication for Iridium a few weeks later and I was having lots of problems. So I tested his PosterApp and that is also failing just to connect and authenticate. Has something changed. Link to comment Share on other sites More sharing options...
Luke 37289 Posted April 13, 2022 Share Posted April 13, 2022 The js version works just fine. The c# version is a bit out of date at this point. Link to comment Share on other sites More sharing options...
Cheesegeezer 3089 Posted April 13, 2022 Share Posted April 13, 2022 6 minutes ago, Luke said: The js version works just fine. The c# version is a bit out of date at this point. me and chef can't seem to get validation or do you think it's do to with all this CORS shite they have introduced? Link to comment Share on other sites More sharing options...
Luke 37289 Posted April 13, 2022 Share Posted April 13, 2022 Who is they? Link to comment Share on other sites More sharing options...
Cheesegeezer 3089 Posted April 13, 2022 Share Posted April 13, 2022 it's the reason why swagger on pc only works on local server. @rbjtech can enlighten you some more, but a heap of extra security hoops to jump thru. Some Cross Origin security. Cross-Origin Resource Sharing (CORS) - HTTP | MDN (mozilla.org) Edge and Chrome have implemented it, so using firefox or safari is a work around to get on swagger etc. 1 Link to comment Share on other sites More sharing options...
clost 0 Posted March 30, 2023 Share Posted March 30, 2023 I think it's broken, swagger doesn't work either Link to comment Share on other sites More sharing options...
Luke 37289 Posted March 30, 2023 Share Posted March 30, 2023 2 hours ago, clost said: I think it's broken, swagger doesn't work either Swagger works just fine, but you may need to have your web app on localhost or https due to browser requirements. Link to comment Share on other sites More sharing options...
clost 0 Posted April 10, 2023 Share Posted April 10, 2023 On 3/30/2023 at 4:49 PM, Luke said: Swagger works just fine, but you may need to have your web app on localhost or https due to browser requirements. I can use swagger, but can not use update password by swagger, I can update password to empty, but can not update password that I want. it seems NewPw doesn't work,or do I need change string to md5? Link to comment Share on other sites More sharing options...
Luke 37289 Posted April 10, 2023 Share Posted April 10, 2023 6 hours ago, clost said: I can use swagger, but can not use update password by swagger, I can update password to empty, but can not update password that I want. it seems NewPw doesn't work,or do I need change string to md5? Try comparing your http request to what the web app is sending by using the browser network request debugger. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now