Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ajaya_paudel
Visitor

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 1
enter0
Visitor

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.