Code Monkey home page Code Monkey logo

Comments (5)

Anthbs avatar Anthbs commented on August 10, 2024

If you check my fork I've had it working on iOS with Auth0.
There's an unimplemented function in the iOS part of the plugin if you request without the resource url which will cause your issue.

https://github.com/moberwasserlechner/capacitor-oauth2/blob/ca210717a4c16d00cc5c275ff8bea0d319c28853/ios/ByteowlsCapacitorOauth2/Source/ByteowlsCapacitorOauth2.swift#L84

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

As resourceUrl is a optional parameter this needs to be fixed.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

@colingreene28 could you please share your config. I need to make sure it's the missing resourceUrl which causes the problem

from generic-oauth2.

colingreene28 avatar colingreene28 commented on August 10, 2024

Yep, I think you're on to it. I don't have a resourceUrl specified

    this.oauthOptions = {
      appId: `${this.clientId}`,
      authorizationBaseUrl: `${this.domain}/authorize`,
      accessTokenEndpoint: `${this.domain}/oauth/token`,
      additionalParameters: {
        audience: `${this.audience}`
      },
      responseType: 'code',
      scope: 'openid profile',
      web: {
        redirectUrl: `${this.getRedirectUrl()}`
      },
      ios: {
        customScheme: `${this.getRedirectUrl()}`
      }
    };
  }

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

As I do not have the time nor a proper setup to test this. I have to ask you to test this either by checking out the branch used for #43 and publishLocally and use the resulting file in your project or wait until I release the new version and test it then.

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.