[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetLoginRequestUri Method with optional NameValueCollection parameter and default access_type=offline in GoogleClient to have refresh_token #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sbaia
Copy link
@Sbaia Sbaia commented Jun 20, 2018

GetLoginRequestUri Method with optional NameValueCollection parameter
for add query string parameters in uri.

Added default queryString parameter access_type=offline in GoogleClient,
to take refresh_token from googleauth api, that otherwise is not
returned.

Added OAuth.pfx signature with OAuth2 password

for add query string parameters in uri.
Added default queryString parameter access_type=offline in GoogleClient,
to take refresh_token from googleauth api, that otherwise is not
returned.
Added OAu
Copy link
Collaborator
@niemyjski niemyjski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a pfx? Can you please remove it

@@ -6,7 +6,7 @@
<DefineConstants>FRAMEWORK;NETSTANDARD2_0;</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change

@@ -74,6 +79,14 @@ public override string Name
}


public override Task<string> GetLoginLinkUriAsync(string state = null, CancellationToken cancellationToken = default, NameValueCollection parametersCollection = null)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this couldn't be a IDictionary<string,string>?

if (parametersCollection == null)
parametersCollection = new NameValueCollection();
if (!parametersCollection.AllKeys.Contains("access_type"))
parametersCollection.Add("access_type", "offline");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any documentation this and why it should be the default value?

@niemyjski
Copy link
Collaborator

Hello,

Can you please make the requested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants