Code Monkey home page Code Monkey logo

Comments (5)

tsavo-vdb-knott avatar tsavo-vdb-knott commented on August 10, 2024 1

No Problem Here it is!

{
    appId: --
    authorizationBaseUrl: 'https://accounts.google.com/o/oauth2/auth',
    accessTokenEndpoint: 'https://www.googleapis.com/oauth2/v4/token',
    scope: 'email profile https://www.googleapis.com/auth/drive',
    resourceUrl: 'https://www.googleapis.com/userinfo/v2/me',
    web: {
      // redirectUrl: 'http://localhost:8081',
      redirectUrl: 'https://meshmycampus.app',
      windowOptions: 'height=600,left=0,top=0',
    },

Additionally,

In using Safari fully launched, it is opening a new tab rather than a window. It also does this in Chrome 72 in full-screen mode. See video (Shared by Google Drives) attached.

I am also available for a video call to further demonstrate.

Frameworks and Information -
App: 100% Custom Web Components Application (Frameworkless)
OS: macOS Mojave: 10.14.1
Browsers: Chrome 72.0
Safari: 12.0.1

It seems to be good to go on mine But the issue is that on real world devices it throws a 50/50 error as above. Which I am trying to reproduce.

https://drive.google.com/drive/folders/1ocGu2oWiQsl_4AwDQHcMJaVUTN5RQHPD?usp=sharing

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

Hey Tsavo!

Could you please share your OAuth2AuthenticateOptions (w/o appId) and your some version numbers of OS, Safari, frameworks and lib.

I guess you do not use the option web.windowOptions.

I tested the master (cap.beta.17) with windowOptions on macOS Mojave and Safari 12.0.2 opens a new window (not a tab) and login with Google and Facebook works.

BR

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

Hey, is this still a issue or did you figure it out?

from generic-oauth2.

tsavo-vdb-knott avatar tsavo-vdb-knott commented on August 10, 2024

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

I added a new windowTarget option a while ago.

Maybe it helps: https://github.com/moberwasserlechner/capacitor-oauth2/blob/33c041e248d0a18ef491f042336c9dcf36a3bd38/src/definitions.ts#L111.

I'll close the issue and if it gets more important for you we always can reopen it.

from generic-oauth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.