fxwegr 5 Posted September 23, 2019 Share Posted September 23, 2019 Hello, everybody,i have a password protected wordpress based website. There i call emby as an external application.Currently I have to authorize for Wordpress as well as Emby. I would like a single sign on (SSO) solution. However, this is completely new territory for me. Is something like this possible with emby, if so how? Regards Link to comment Share on other sites More sharing options...
Luke 36876 Posted September 23, 2019 Share Posted September 23, 2019 Hi, possibly using our ldap plugin but right now that would be the only way. Link to comment Share on other sites More sharing options...
fxwegr 5 Posted September 23, 2019 Author Share Posted September 23, 2019 Thanks, I will have a look..... Link to comment Share on other sites More sharing options...
fxwegr 5 Posted September 23, 2019 Author Share Posted September 23, 2019 Hi Luke, I assume the plugin is an LDAP client. Does it only read credentials from an LDAP server and put them in the login page, or does it allow an automatic login? The information is somewhat scarce there. Regards Link to comment Share on other sites More sharing options...
Luke 36876 Posted September 23, 2019 Share Posted September 23, 2019 It allows you to login with ldap credentials so that you can manage your user authentication in ldap. Link to comment Share on other sites More sharing options...
fxwegr 5 Posted September 24, 2019 Author Share Posted September 24, 2019 I understand that then LDAP only provides a centralized administration of the credentials in the network. But this is not what I want to achieve.After looking around the swagger, I came across the RestApi and found this:curl -X POST "http://192.168.178.27:8096/emby/Lastfm/Login"-H "accept: */*" -H "Content-Type: application/json" -d "{\"Username\":\"string\",\"Password\":\"string\"}" Is it possible to achieve something on this way, with some additional coding? Regards Link to comment Share on other sites More sharing options...
Luke 36876 Posted September 24, 2019 Share Posted September 24, 2019 Yea I understand it's probably not what you wanted, I was just offering it as a suggestion. Link to comment Share on other sites More sharing options...
fxwegr 5 Posted September 24, 2019 Author Share Posted September 24, 2019 Could you possibly say something about the second part of my post? And further: Can the Emby API's only be used after a successful login? For example in a plugin. Link to comment Share on other sites More sharing options...
Luke 36876 Posted September 24, 2019 Share Posted September 24, 2019 Is it possible to achieve something on this way, with some additional coding? What you're asking for would require development from us. Can the Emby API's only be used after a successful login? For example in a plugin. It depends on what you want to do. If it is something that involves something user-specific, then generally yes it will require login. Link to comment Share on other sites More sharing options...
fxwegr 5 Posted September 24, 2019 Author Share Posted September 24, 2019 No, this is a misunderstanding. I will develop it myself. In Wordpress there is a suitable framwork available for this purpose. My intention depends on whether I can use this API call (RestApi) curl -X POST "http://192.168.178.3...y/Lastfm/Login"-H"accept: */*" -H "Content-Type: application/json" -d "{\"Username\":\"string\",\"Password\":\"string\"}" In a PHP Wordpress script, to login automatically to Emby. If that doesn't work, it would be nice if you put the SSO problematic on your developement TO DO list. Regards Link to comment Share on other sites More sharing options...
Luke 36876 Posted September 24, 2019 Share Posted September 24, 2019 Why is lastfm part of the url? Link to comment Share on other sites More sharing options...
fxwegr 5 Posted September 24, 2019 Author Share Posted September 24, 2019 I took the call from the swagger like this. The command should only show you what I have in mind. Link to comment Share on other sites More sharing options...
Luke 36876 Posted September 24, 2019 Share Posted September 24, 2019 It probably will not work, but I think you will just have to try it. 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