Forum Discussion

simssons2's avatar
simssons2
Reel Rookie
5 years ago

how does criteria work about on-device-authentication?

Hi, I'm preparing for certification and struggling with implementing on-device-authentication.

But I wonder if I have to exactly follow the flow shown as follows: 

on-device-authenticaton with automatic account link flow chart

To be more specific, is it possible to store customers email, password directly to Roku cloud and device registry instead of storing access token? 

It's still adhere to the criteria "Channels must complete account sign-ups and sign-ins on the device using On-device authentication, without visiting an external webpage"....

  • RokuJonathanD's avatar
    RokuJonathanD
    Community Moderator

    Hi simssons2,

    The customer's personal information may not be stored in the Roku Cloud or in the device registry. You can store an access token, oAuth token, or some other authentication artifact.

    • JSTStuadr's avatar
      JSTStuadr
      Newbie

      We too have this issue. 
      So now we can't use Oauth2.0 Device Flow or Auth Code flow ? All Idp we use to authenticate our users using Oauth2.0 are not supported on Roku. 

      • RokuJonathanD's avatar
        RokuJonathanD
        Community Moderator

        You can use the client credential oAuth 2.0 flow to get an access token and store it in the Roku Cloud. You can then subsequently get a refresh token upon validating a subscription and then store it in the Roku Cloud. 

  • Hello I am working with roku cloud, I have problems obtaining the token that I store in roku cloud, I get it but it is empty, to upload I have no problems, everything works fine, I need help