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

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.

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 whaleandtuna
      Please Help. I have LG qned tv with webOS 23
      1) What I did: with svc remote -> in start -> 0413 and all, area option was changed.
      I was trying many numbers to find the code for KR (which didn't work).
      2) What I wanted : change area option from CA -> KR (widely known area codes do not work)
      Original code: CAD 22411
      3) Problem: Once I put a number between 19461 ~ 19489, Language&Country is set to EU and would not change the country with the other numbers.
      Area option: 19461 ~ 19489 Continent index: 5 ~ 33 Language & Country: EU  
      Now I put 22411 to change it back to original region, but the country would not change from EU to CA, the area option is back to 19461.
      If anyone is trying the area option numbers, don't put any number between them.
      If any one knows how to resolve, please help me to escape from EU.. I am so desperate.
      FYI just in case
      hk 17930
      hk 17935
      co 17560
      ph 15670
      cn 17816
      ja 17211
      aj 17083
      tw 17432
      pa 17679
      hn 18618
      ca 18362
      mx 18456
      hn 18584
      br 18789
      cl 18876
      pe 19033
      ar 19123
      ec 19251
      jp 19345
    • By Alfaro
      I have a problem with my LG 43NANO756PR: if an app is paused (for example a youtube video or music track is put in pause), after about two minutes the TV goes back to the TV antenna input. Very unpleasant if you are on the phone and need a quiet environment. Same thing if I mute the audio: after about 2 minutes the volume resumes as before.
      Any way to sort this issue?
    • 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
    • By sadfsfdAszdFGAsdeF
      I was asked to integrate at LG, I got all the correct emails now it wont let me log in there or to my TV. What sort of back end is LG running
      Seriously? What the hell?
    • By AndyW
      I see you have updated Web OS
      Why do you have to screw around with it, I don't want your 'Apps Experience' I just want to be able to watch TV!
      There used to be a button for selecting TV, it had gone now - why?
      Every time you do an update the TV channels favourite has to be re-selected.
      I write software for a living and if I treated my customers like you treat yours I would be out of a job.
      Can you please put the TV channel selection back and possibly a setting so we don't have to wade through all the App garbage you seem so intent on wanting us to use - it's almost like you earn money from it...
  • Create New...