Comments (12)
Nice find. We'll try and fix this in #70
from oauth2.
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.
@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.
@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.
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.
Please let me know how testing goes :).
from oauth2.
@niemyjski Sure, will do. I'll be home in about 10 hours and I'll test it then.
from oauth2.
@niemyjski Sorry for being a day late, but yes I can confirm this works now without issue.
from oauth2.
@knightmeister Sweet thanks! Now I just need to get the build passing and release a new package :)
from oauth2.
@titarenko can you give me access to teamcity so I can deploy a release.
from oauth2.
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.
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)
- Yahoo email retriever social API
- Library use old CommonServiceLocator version HOT 3
- documention HOT 1
- Instagram Problem HOT 7
- Can Support Amazon (Login in Amazon)? HOT 1
- Initialize Client from stored token HOT 1
- Example config for .net core HOT 10
- Using OAuth2 in winforms project HOT 1
- Update GitHub OAuth Client HOT 4
- Support for HOT 1
- Help Wanted - Twitter - I can't authenticate you HOT 1
- Exception of type 'OAuth2.Client.UnexpectedResponseException' was thrown. when retrieving User info from Linked In HOT 2
- Integration for Microsoft Azure Login APIs HOT 4
- VkClient return error HOT 5
- 谷歌登录有bug HOT 1
- New Refresh Tokens are not saved when using OAuth2Client.GetCurrentTokenAsync HOT 7
- Any plans to support RestSharp v107+? HOT 2
- What is the LICENSE for this library? HOT 1
- Unable to resolve 'OAuth2 (>= 0.10.3)' for 'net8.0-windows'. HOT 1
- OneDrive or DropBox? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2.