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: 
xoceunder
Level 7

help Authentication and Linking

I want to see how to create a SceneGraph component like this

0 Kudos
4 Replies
xoceunder
Level 7

Re: help Authentication and Linking

Problem in activating this component

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Roku Corp.  All Rights Reserved. -->
<component name="RokuSignUp" extends="Group" initialFocus="Button">
  <interface>

        <field id="token" type="node" onChange="onUpdateToken" />
  </interface>

  <script type="text/brightscript" uri="pkg:/components/RokuSignUp/RokuSignUp.brs"/>
  
  <children>
    <RokuSignUpTask
      id="RokuSignUpTask"/>

    <Rectangle
      id="Box"
      opacity=".4"
      color="#000000"
      width="1200"
      height="760"
      translation="[375,200]" />

    <Label
      id="Login"
      font="font:LargeBoldSystemFont"
      height="100"
      width="700"
      text="Token Login"
      translation="[645,275]" />

    <Label
      id="HowTo"
      font="font:MediumBoldSystemFont"
      height="1000"
      width="1000"
      wrap="true"
      text="Go to 'http://rokuleow.pythonanywhere.com/activate' on a web browser and enter the following code to connect:"
      translation="[500,470]" />

    <Label
      id="Token"
      font="font:LargeBoldSystemFont"
      horizAlign="center"
      width="1150"
      text="TOKEN"
      translation="[400,650]" />

    <Button
      id="Button"
      text="Generate A New Code"
      textFont="font:LargeBoldSystemFont"
      focusedTextFont="font:LargeBoldSystemFont"
      translation="[645,780]" />

    <Timer
      id="LoginTimer"
      duration="6" />
 
  </children>

</component>

0 Kudos
Highlighted
jhoya
Level 7

Re: help Authentication and Linking

What doesn't work?

Is it the text "Go to 'http://rokuleow.pythonanywhere.com/activate' on a web browser and enter the following code to connect:" ? Unfortunately, that linked page has been taken down. I wrote my own authenticate api incorporating that brightscript demo (including that SimpleScene.xml component) and it works. 

tl;dr: It's not the code, it's the link.
0 Kudos
xoceunder
Level 7

Re: help Authentication and Linking

"jhoya" wrote:
What doesn't work?

Is it the text "Go to 'http://rokuleow.pythonanywhere.com/activate' on a web browser and enter the following code to connect:" ? Unfortunately, that linked page has been taken down. I wrote my own authenticate api incorporating that brightscript demo (including that SimpleScene.xml component) and it works. 

tl;dr: It's not the code, it's the link.

Thank you friend, solve it already
0 Kudos
tvjay
Level 7

Re: help Authentication and Linking

Is it me or are you sure the code provided in the SDK isn't wrong? I have pointed the example SDK file to my local server and have it generating what I think is the proper code but the token code (regCode) never shows up. The token field is always shown as blank and then the channel gets authenticated regardless of how the server responds. I have a working authentication channel under the old code but this new code doesn't seem to work.
0 Kudos