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

Normally you have to give the return URL in your call to the signin-page of the oauth-provider. And you have to configure your app with the provider.

Mostly oauth-providers have an example pages for developers, for example

link hidden, please login to view

Link to comment
Share on other sites

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 Nick Payne
      I can stream ABC content using either the iView app on our LG G1 65" OLED, or via the iView Android TV app that is installed on a Chromecast with Google TV that is plugged into one of the G1 HDMI ports. If I stream content using the app on the TV, every few minutes there's a momentary (fraction of a second) interruption to both sound and video. If I stream the same content using the app on the Chromecast, I get no such interruptions. Both TV and Chromecast are using wired Ethernet connections to the same switch, so I can't see that these interruptions are due to a network problem, or I'd see them on both devices. It would seem to be a problem with the app provided on the TV. Other streaming services that we access via apps on the TV (Netflix, Stan, Amazon Prime, etc) do not show the same problem.
    • By frank_1985
      Hi everyone,
      I'm interested in the OLED BX. I would like to know if it is compatible with a 5TB HDD (to be connected and fed through one of the TV USB port).
      LG manuals recommend to connect up to 2TB storage HDDs but don't really state that higher capacity devices are not expected to work.
      Then, I'm not sure how are things with DTS support. It seems that DTS decoding is no longer supported on the 2020 tv sets. But LG web page (updated 08/22/2020) titled "Support Video Playback File Type & Codec" still claims that "TV supports DTS audio codec when USB/HDMI video file playback offers it".
      Can any of you shed some light on these ones?
      Thank you so much.
       
    • By H_Rovy
      I want to be able to turn on my TV without it automatically launching a cable channel. ( or repeatedly asking me if I want to turn on the cable box).  Is there any way to "just' start with the home screen? Also when I've been watching something (app or cable) and go back to Home screen, it will go back to what I was watching if there is no input for a minute or so. grrrr. so annoying
    • By GiovanniG
      Hi, today I've lost about 8 hours trying find out how to open an rtsp of an IP camera into a new 65" OLED TV, which is updated to the latest FW. Tons of apps for IPTV but none of them is able to open a working/tested RTSP, also including it into a playlist m3u file. Nobody in this world has thought to display an RTSP on a LG TV? Looks unbelievable.

      I've read a bout "webOS Signage and LG" but no ide how to implement it, install it, nowhere it is described.
      I need to display an rtsp stream on LG tv, I have the chance only woth an external device by HDMI or DLNA? That's a shame..
      Thank you for help
    • By fishy666
      The NEW Amazon Prime Video App update is horrible. Cannot access any content from my Shudder channel subscription. Constant errors.

×
×
  • Create New...