Luke 40063 Posted September 2, 2012 Posted September 2, 2012 There is now an api call that will get you the server configuration. /mediabrowser/api/serverconfiguration. This should be the very first call you make when your app starts up. It will tell you if certain features are enabled or not. For instance, it has EnableUserProfiles. If true, you should display the login screen as normal. If false, you should skip the login screen. Make a call to to get the default user at: /mediabrowser/api/defaultuser Then proceed with this user in exactly the same fashion as if they had logged in, except do not show any visual elements displaying the current "logged in user". All of this has been added to ApiClient so you can see sample usage. Try not to keep the configuration in memory for too long, because it could change. Instead just get it when you need it.
ebr 15662 Posted September 7, 2012 Posted September 7, 2012 UI guys - we need a way to have a default user for a particular device. People will want their user profile in use but not have to enter the PW just to get into the app.
ScottIsAFool 517 Posted September 7, 2012 Posted September 7, 2012 I planned on having a remember me option on the win8 one.
MongooseMan 31 Posted September 7, 2012 Posted September 7, 2012 Me 3 (with an option somewhere to change user)
Luke 40063 Posted September 8, 2012 Author Posted September 8, 2012 I've just pushed a breaking change to the default user api call. The url has changed to /mediabrowser/api/user Basically it is a user api. You can supply id to get a specific user object, or omit to get the default user. ApiClient has been updated.
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