Quantcast
Jump to content

OAuth & Redirect back to app


Recommended Posts

I develop an app that needs to support a 3rd party login functionality, so that I don't have to onboard uses, secure and process user data, etc.

The general flow is as follows: 

1. Launch app

2. Navigate away to the 3rd party login screen

3. Login

4. Redirect back to the app

I've integrated the vendor login screen, i.e. my app is opening said webpage in its own container, but I'm unable to navigate back to my app upon successful login.

Is this feature supported at all? If so, how should I go about it?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Hey, Robbie!

Thank you so much for the reply! I should've made it clear that I'm porting a Web app to webOS. I have the functionality in place and it is working in Desktop/Mobile browsers.

The issue itself is that, I need to go back to the webOS app and I'm not able to do it if I simply pass "file:///media/developer/apps/usr/palm/applications/com.cool.app/index.html".

Link to comment
Share on other sites

  • 4 weeks later...
On 2/7/2022 at 5:38 PM, ndimitrov said:

Hey, Robbie!

Thank you so much for the reply! I should've made it clear that I'm porting a Web app to webOS. I have the functionality in place and it is working in Desktop/Mobile browsers.

The issue itself is that, I need to go back to the webOS app and I'm not able to do it if I simply pass "file:///media/developer/apps/usr/palm/applications/com.cool.app/index.html".

I was looking for the same solution since LG Supersign doesn't support OAuth (only support database or ActiveDirectory), I think the only way is to do the following:

1) first, use an API Gateway to protect your LG SS from accessing by anyone who doesn't have a valid JWT Token.

2) Launch app

3) Navigate away to the 3rd party login screen

4) Login

5). Redirect back to the app...here you redirect to the API GW endpoint in (1).

6) API GW validate the JWT token and wheee user has LG SS Token.

7) since user doesn't have LG SS token. You can use a custom app or Lambda to perform login to LG SS thru OPENAPI (by LGSS). This process can be handled in the background so user won't realise there is a 2nd login to LG SS.

8.) pon success login to LG SS. You will receive the LGSS token. Add it into the user session. Your session should have JWT and LG SS token.

9) Redirect user to API GW again, which check JWT and LG SS. Since they are valid redirect user to LG SS Web page. 

Make sense?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Topics

    • By Sucharek
      Hi, I've been trying to make a shortcut for turning off the screen. I managed to replace the prime video button on the magic remote to run youtube, now I've got the other keys for extra modification.
      My question is, can I find an app that can be used as a shortcut to turn off screen, or do I have to make it myself? And if so, how?
    • By hjetschko
      Hi, I have a feature request for the sound out setting. I often connect my Bluetooth headphones to the TV. We don't use the internal speaker of the TV, we use the optical sound out setting whenever I don't use Bluetooth. It would make our lives a lot easier if the TV can remember the last sound out setting before connecting to Bluetooth and default back to this setting when the Bluetooth device gets disconnected. At the moment, each time I disconnect the headphones I have to go back into settings and change the sound out setting from internal speaker to optical again. 
      Thanks and regards
      Hubert
    • By News Reporter
      Trees are vital. There is no denying how trillions of trees around the world are central to all life on Earth. Not only do Mother Nature’s skyscrapers provide clean, fresh air and cozy habitats to thousands of living species, but they also help us combat climate change and preserve biodiversity for many decades to come.

      In ensuring that this legacy can be passed onto future generations, LG Indonesia signed a Memorandum of Understanding (MoU) with the Conservation of Natural Resources Jakarta to celebrate their 32 years of operation in Indonesia. For this purpose, the company pledged to plant 32,000 trees across Jakarta, Kalimantan and Sumatra by April 2023.
      Jay Jang, director of marketing and relations at LG Electronics Indonesia,
      shaking hands with Abdul Kodir, head of the Conservation of Natural Resources Jakarta
      This initiative sheds light on LG’s commitment to environmental sustainability in Indonesia in the same fashion as the company’s eco-friendly solutions, products and technologies, including their energy-saving inverter technology, which helps customers achieve a more eco-conscious lifestyle by improving energy efficiency. Incorporated into a wide range of household appliances, such as refrigerators, washing machines and air conditioners, this cutting-edge inverter provides users with peace of mind as they are able to easily manage their ecological footprints.

      However, LG’s efforts toward environmental sustainability extend well beyond the tree-planting initiative. The company’s technological interventions also complement its commitment to reach carbon neutrality by 2030, through the minimization of carbon emissions and footprints across the overall process, from production to disposal.

      LG is endlessly passionate about raising global awareness of environmental sustainability, not only through its technological innovation and world-leading products but also by implementing various environmental interventions designed in order to make life better for people of all backgrounds and localities.

      Contributed by LG Indonesia
      # # #

      link hidden, please login to view
    • By Miroslav Tuhársky
      Hello, I have LG OLED CX and recently the Youtube app has incorrect geographic data- CH. I am from Slovakia, the TV has never been to Switzerland. Nor physically, nor virtually (VPN). I am getting CH ads, which I dont mind so much, but I am afraid of possible in app geo restrictions.
      I already tried everything, even resetting the TV to default.  No other TV app is affected.
      Anybody please advise.

    • By News Reporter
      As the world welcomes in the new year, LG is busy ushering in a new era in TV with the announcement of its new vision statement, “Sync to You, Open to All.” The company’s vision for the present and future of screen is all about syncing the user experience to each user’s individual tastes and lifestyle. It’s a vision that sees the screen as a seamless extension of people’s everyday life; a place where one can go to be entertained, to connect, to pursue their passions and so much more.

      “Sync to You, Open to All,” although new, is a continuance of LG’s long-term commitment to changing the role of TV. The company aims to realize its vision by reflecting customer opinion throughout the entire user experience journey, factoring feedback into every single facet – from product and service development to User Interface (UI) features, design and, of course, the viewing experience.
      In LG’s reimagining of what television is, the living room TV is now considered a lifestyle hub – one centered on the delivery of a personalized, customizable experience that lets users do and be more.

      “Sync to You” relates to the delivery of a user experience that takes personalization to the next level. In terms of hardware, this means the introduction of new and diverse screen products intended for different audiences. These will include screens leveraging Zero Connect technology, to provide spatial and interior design freedom, flexible screens that users can ‘bend’ to their needs and screens that eschew conventional design.

      As far as software is concerned, “Sync to You” focuses on providing unique experiences optimized for each user, thanks to webOS, LG’s open and constantly evolving smart TV platform. This encompasses the ability to customize a broad range of functions and settings to one’s preferences, starting with UI configuration, content recommendations and picture quality. But it also extends to the provision of an expanded customer experience, thanks to a wide range of interactive services from categories as diverse as cloud gaming, the metaverse, remote learning, home security, home fitness or health.
      A variety of virtual worlds can also be accessed, from
      link hidden, please login to view, a virtual art museum allowing you to walk inside and explore emotions beyond the creative work or , the world first TV metaverse service, a full mixed reality platform offering life events that happen at the same time in both realities and , a new cloud solution allowing users to access interconnected digital worlds. The app on LG TVs offer access to over 180 classes taught by the world’s best instructors and thanks to a new partnership with , LG TV owners can benefit from integrated services developed exclusively for webOS.
      LG TVs also offer a variety of fitness services from , world’s largest fitness group and , to, which allows to connect a fitness machine to the TV and Exercite, a motion sensor solution that recognizes your body’s posture.
      The second part of LG’s vision statement, “Open to All,” is about collaboration, inclusivity and sustainability. Through open collaboration, LG TV users will be able to connect to different platforms and devices across an ever-growing ecosystem. Communication and control will be especially smooth thanks to support for Matter, the latest open connectivity standard for smart home solutions.
      LG TV is also designed to be accessible to all users, regardless of their age or abilities. In consultation with its accessibility advisory group, whose members include people living with various disabilities, LG is continuously developing and rolling out inclusive technologies and features. Among those currently offered on LG TV are audio-to-text captions and a sign language screen that can be easily moved and resized whenever the user desires. There are also services available on LG TV that have been created specifically with elderly users and children in mind.
      Sustainability is another integral element of LG TV and of LG’s vision. All LG TV products are shipped in boxes that feature one-color printing and have been made from biodegradable materials. The TVs themselves contain parts fabricated from recycled plastics. LG’s OLED TVs deserve special mention when it comes to sustainability, using a smaller number of components and offering greater recyclability than their LCD counterparts. Furthermore, since they do not require a backlight having fewer parts overall, there is less to recycle and dispose of.

      Guided by its new vision statement “Sync to You, Open to All,” and a firmly held belief that “Life’s Good,” LG is and will continue to provide LG TV users with differentiated lifestyle experiences and exceptional customer value.
      # # #




×
×
  • Create New...