Giter Club home page Giter Club logo

Comments (5)

faustbrian avatar faustbrian commented on May 23, 2024

If a user denies access with any socialite provider you need to either handle that exception on your end for example in your handleCallback method.

Some services offer that you set a separate denial callback url which you can set on their website but not all do so it is safer to always handle the exception.

from providers.

tranhl avatar tranhl commented on May 23, 2024

I noticed that if the user denies access, the callback request includes an oauth_verifier value of denied. Could we not check for that value in the request and then act accordingly? It would save having to query JIRA's servers and the subsequent exception handling.

from providers.

faustbrian avatar faustbrian commented on May 23, 2024

Yeah, usually a value like that is what you need will need to use to handle your denial action like redirecting them to a page that shows them a message that access has been denied.

from providers.

tranhl avatar tranhl commented on May 23, 2024

Is it possible to access this value through the Socialite API? I tried directly accessing it, but found that it was protected rather than public. I would rather check the value of oauth_verifier rather than catch an exception.

from providers.

m1guelpf avatar m1guelpf commented on May 23, 2024

@tranhl Closing for lack of activity. Feel free to comment if you're still looking for a solution and I'll reopen :)

from providers.

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.