question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

oAuth2 flow with Browser plugin

See original GitHub issue

Description of the problem:

Affected platform

  • [ x] Android
  • [ x] iOS
  • [ x] electron
  • [ x] web

OS of the development machine

  • Windows
  • [ x] macOS
  • linux

Other information:

Capacitor version: 1.0.0

node version:

npm version:

CocoaPods version:

Steps to reproduce:

Link to sample project:

We are using client redirect url in oAuth flow, we are also listening to appUrlOpen event and use router navigate to route to appropriate page. We are facing multiple problems with Capcitor where it was working as expected with ionic 3, Cordova and IAB.

  1. platform alway says capacitor even when running the app in the browser.
  2. deep linked page capacitor://<route> only works on ios with subscribing to appUrlOpen event. It does not work in android and web.
  3. Browser.close() only works in ios, how do we close the browser instance after oAuth is successful.

Has anybody implemented oAuth code + PKCE with Cap Browser? Any help is appreciated,

Thanks, 3)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
jcesarmobilecommented, Jan 13, 2020

Please, don’t use github issues to ask questions, just to report issues. For questions you can ask on the forum, slack or stack overflow using capacitor tag.

1reaction
GracetInccommented, Aug 22, 2019

Same here, anybody did it successfully?

Read more comments on GitHub >

github_iconTop Results From Across the Web

OAuth Flows
This extension adds a OAuth Flows tab in Google Chrome's developer tools and monitors OIDC and OAuth traffic on the page you are...
Read more >
OAuth2: Authenticate users with Google - Chrome Developers
Step-by-step instructions on how to build an extension that accesses a user's Google contacts via the Google People API, the Chrome Identity ...
Read more >
OAuth 2.0 from chrome extensions
A JavaScript library that handles OAuth 2.0 for you, with a dead simple API. Comes with adapters for Google, Facebook and Github.
Read more >
OAuth 2.0 for Browser-Based Apps
OAuth 2.0 for Browser-Based Apps describes security requirements and other recommendations for SPAs and browser-based applications using OAuth 2.0.
Read more >
Google's OAuth2 Authorization with Chrome Extensions
Navigate to the address “chrome://extensions” in your Chrome Browser. Click on “Pack Extension” and choose the location of your Chrome Extension. This will ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found