-
Notifications
You must be signed in to change notification settings - Fork 234
Added ConstantContact Provider #193
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
base: master
Are you sure you want to change the base?
Added ConstantContact Provider #193
Conversation
|
||
namespace Owin.Security.Providers.ConstantContact | ||
{ | ||
public class Class1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please delete this file that does nothing?
}; | ||
if (!string.IsNullOrEmpty(context.AccessToken)) | ||
{ | ||
context.Identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, context.AccessToken, XmlSchemaString, Options.AuthenticationType)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe any of the providers in this repository place their access tokens right in the users claims. If people wish to get access to these tokens they can pass in their own AuthenticationProvider with its own OnAuthenticated lambda
: base("ConstantContact") | ||
{ | ||
Caption = Constants.DefaultAuthenticationType; | ||
CallbackPath = new PathString("/signin-ConstantContact"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make the path string all lower case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and then fix the comment on the parameter.
Constant Contact Oauth 2 provider