Jump to content

Recommended Posts

Posted

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

 

Posted

Hi, possibly using our ldap plugin but right now that would be the only way.

Posted

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

Posted

It allows you to login with ldap credentials so that you can manage your user authentication in ldap.

Posted

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

Posted

Yea I understand it's probably not what you wanted, I was just offering it as a suggestion.

Posted

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.

Posted

 

 

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.

Posted

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

Posted

Why is lastfm part of the url?

Posted

I took the call from the swagger like this. The command should only show you what I have in mind.

Posted

It probably will not work, but I think you will just have to try it.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...