Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ajaya_paudel
Level 7

User Authentication

Hello,
I have use Roku Scene graph grid screen and now i want to put user authentication in that where after clicking the channel icon first comes login screen how can i do that can you give me idea and f you have integrate then can you show me idea?since i am the new coder in Roku
0 Kudos
1 Reply
enter0
Level 7

Re: User Authentication

Take this with a heaping spoonful of salt because I haven't actually done any work with user authentication.

But assuming the user has registered elsewhere (say on your website) and set up a username and password, I guess maybe you could prompt them for their info with a Keyboard node, then use the ifUrlTransfer function SetUserAndPassword(user as String, password as String) to do HTTP digest authentication of the user. Then after that perhaps you could save a token to the registry with their user info to verify that they have already logged in, so that they don't have to log in again every time they open the app up, and you can just pull the info from the registry every time they open the app to repeat the authentication (to verify their info hasn't changed/their account is still open)? And if the info you've saved in the registry ever stops working to authenticate the user, you prompt them to enter it again just like you did the first time they opened the app.

But again, I don't know. This is just a guess and it's likely not the way you're supposed to do it.
0 Kudos