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

AuthResponseData #4

Open
koderi-dp opened this issue Oct 16, 2014 · 0 comments
Open

AuthResponseData #4

koderi-dp opened this issue Oct 16, 2014 · 0 comments

Comments

@koderi-dp
Copy link

Hi,

this is not issue but request, in proxy class ObtainAccessToken, when request is made to ontime

var authResponse = baseRequest.Get("oauth2/token", tokenParam);
// Store access token and Access response data
AccessToken = authResponse.AccessToken;

that response has additional data that could be used

my modified part

public class AuthResponse
{
[JsonProperty("access_token")]
public string AccessToken { get; set; }
[JsonProperty("data")]
public AuthResponseData AccessTokenData { get; set; }
}

public class AuthResponseData
{
[JsonProperty("id")]
public string UserId { get; set; }
[JsonProperty("first_name")]
public string UserFirstName { get; set; }
[JsonProperty("last_name")]
public string UserLastName { get; set; }
[JsonProperty("email")]
public string UserEmail { get; set; }
[JsonIgnore]
public string UserLoginName { get; set; }
}

could you include that into source, AuthResponseData?

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

No branches or pull requests

1 participant