rechigo 293 Posted August 11, 2019 Share Posted August 11, 2019 So I am trying to make a request to AuthenticateByUsername but it keeps refusing the request when I make a request with the X-Emby-Authorization or Authorization header. I'm probably making a mistake on my end so if someone could tell me what I'm doing wrong I would appreciate it Video: https://memester.cf/u/sp9.mp4 Link to comment Share on other sites More sharing options...
Luke 37049 Posted August 11, 2019 Share Posted August 11, 2019 Hi, a code sample might be better than a video. Thanks. Link to comment Share on other sites More sharing options...
rechigo 293 Posted August 11, 2019 Author Share Posted August 11, 2019 Well I found out what the issue was, I was tired and used the wrong route. The correct route would be http://swagger.emby.media/?staticview=true#/UserService/postUsersByIdAuthenticate but it needs two fields Password and Pw. What would the pw field be? Link to comment Share on other sites More sharing options...
SamES 890 Posted August 11, 2019 Share Posted August 11, 2019 (edited) See this : https://github.com/MediaBrowser/SamsungSmartTV/blob/master/app/javascript/Server.js#L555 Only needs pw as plain text Edited August 11, 2019 by SamES Link to comment Share on other sites More sharing options...
rechigo 293 Posted August 11, 2019 Author Share Posted August 11, 2019 Tried that, says Value cannot be null. Parameter name: appName @@SamES Link to comment Share on other sites More sharing options...
Luke 37049 Posted August 11, 2019 Share Posted August 11, 2019 Have you read through the api wiki? https://github.com/MediaBrowser/Emby/wiki Link to comment Share on other sites More sharing options...
Solution rechigo 293 Posted August 11, 2019 Author Solution Share Posted August 11, 2019 My bad, I forgot I was supposed to include this in the authorization header Emby Client="Android", Device="Samsung Galaxy SIII", DeviceId="xxx", Version="1.0.0.0". It is working fine now, sorry for the annoyance lol 1 Link to comment Share on other sites More sharing options...
Luke 37049 Posted August 11, 2019 Share Posted August 11, 2019 Well done. 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