Code Monkey home page Code Monkey logo

Comments (9)

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024 2

OauthSwift 1.3.0 was released today. :)

from generic-oauth2.

mraible avatar mraible commented on August 10, 2024 1

Note that OAuthSwift added support for PKCE OAuthSwift/OAuthSwift#501 (comment)

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024 1

For code response type PKCE will be enabled by default because it's the most common use case for code.

A additional option will allow disabling this default behaviour.

For this task the challenge itself and the method is set by the plugin, depending on the platform the method is plain (web) or S256 (Android, iOS).

In any case the challenge and the method along is return in the response parameters so users can store it as it suites them.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

https://developer.okta.com/authentication-guide/implementing-authentication/auth-code-pkce
https://developer.okta.com/authentication-guide/auth-overview/#authorization-code-with-pkce-flow

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

This does not include having to use the app secret, which will not be supported because of security reasons.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

While looking deeply into Facebook's SDK I think as soon as PKCE is supported also FB might be supported out of the box

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

iOS: OAuthSwift with PKCE is not released yet!
Android: appAuth supports PKCE
Web: own impl will support it as well ;)

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

Althougth it might be easier for me as plugin developer to leave everything to the user but as a user I don't want to do PKCE myself. So I most probably introduce 1-2 dependencies to the web part and let the plugin handle everything.

from generic-oauth2.

moberwasserlechner avatar moberwasserlechner commented on August 10, 2024

As mentioned above PKCE is enabled by default if code flow is used.

To disable PKCE set the new option pkceDisabled to true.

Note: I tested PKCE only with Google OAuth provider, which does not require the usage of PKCE and works with and without it.

@mraible Could you please test this with your provider (okta) and give me a feedback. Do you need #18 as well to make it work? If not I would release the pkce feature right away ;)

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.