Coder Social home page Coder Social logo

Bugs when accessing Google about oauth2 HOT 12 CLOSED

titarenko avatar titarenko commented on September 26, 2024
Bugs when accessing Google

from oauth2.

Comments (12)

niemyjski avatar niemyjski commented on September 26, 2024

Nice find. We'll try and fix this in #70

from oauth2.

knightmeister avatar knightmeister commented on September 26, 2024

Fantastic. I have branched Oauth2 if I get a chance to fix it myself I will
and send a PR.

On Wednesday, 17 June 2015, Blake Niemyjski [email protected]
wrote:

Nice find. We'll try and fix this in #70
#70


Reply to this email directly or view it on GitHub
#73 (comment).

Sent from my phone - please excuse any terseness

from oauth2.

niemyjski avatar niemyjski commented on September 26, 2024

@knightmeister I closed it because I've made some changes that I want to get reviewed, but I think fixes this issue. Can you please review my latest commit (and read the comment.

from oauth2.

knightmeister avatar knightmeister commented on September 26, 2024

@niemyjski The diff looks like it will address the first issue I raised, I will test it tonight and let you know for sure if it closes that. The other part of the issue is that OAuth2 expects a refresh_token to be returned by Google (in Ouath2Client)

if (GrantType != "refresh_token")
                RefreshToken = (string) ParseTokenResponse(response.Content, RefreshTokenKey);

I went and did some reading at Google (https://developers.google.com/identity/protocols/OAuth2WebServer) and Google will not return the refresh_token unless you're requesting offline access, which I'm not.

Do you want me to raise another issue for the above?

from oauth2.

niemyjski avatar niemyjski commented on September 26, 2024

I changed it to make it optional because I don't think those fields
will be populated by everyone (thoughts on this). You could create a new
issue if you'd like :) But I don't see people requesting offline access. I
wouldn't use this library if it forced me to request above normal
permissions (as I won't use any service that forces me to give them my
friends list etc..). If you think this is an issue (my change) please open
a new issue for the refresh token.

from oauth2.

niemyjski avatar niemyjski commented on September 26, 2024

Please let me know how testing goes :).

from oauth2.

knightmeister avatar knightmeister commented on September 26, 2024

@niemyjski Sure, will do. I'll be home in about 10 hours and I'll test it then.

from oauth2.

knightmeister avatar knightmeister commented on September 26, 2024

@niemyjski Sorry for being a day late, but yes I can confirm this works now without issue.

from oauth2.

niemyjski avatar niemyjski commented on September 26, 2024

@knightmeister Sweet thanks! Now I just need to get the build passing and release a new package :)

from oauth2.

niemyjski avatar niemyjski commented on September 26, 2024

@titarenko can you give me access to teamcity so I can deploy a release.

from oauth2.

titarenko avatar titarenko commented on September 26, 2024

I tried yesterday, but unfortunately, I haven't found the way to add new user under my account. BTW, build is failing. It seems that acceptance tests project is missing reference to FluentAssertions.

from oauth2.

niemyjski avatar niemyjski commented on September 26, 2024

hmm, I'll try and take a look they were passing the other day. Any chance you can change the password and email it to me and we can share it?

from 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.