Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Consolidate auth APIs #282

Merged
merged 6 commits into from
Apr 24, 2015
Merged

Consolidate auth APIs #282

merged 6 commits into from
Apr 24, 2015

Conversation

Tratcher
Copy link
Member

#266 - Consolidate all the auth APIs to HttpContext.Authentication
#270 - Naming

@davidfowl @muratg
/cc @HaoK

@ghost ghost added the cla-already-signed label Apr 17, 2015
@Tratcher
Copy link
Member Author

Update to include #273 - POCO context objects.

HttpResponseFeature.StatusCode = 401;
var handler = HttpAuthenticationFeature.Handler;

var challengeContext = new ChallengeContext(authenticationScheme, properties == null ? null : properties.Items);
Copy link
Member

Choose a reason for hiding this comment

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

properties?.Items

@Tratcher
Copy link
Member Author

Updated and rebased.

@Tratcher
Copy link
Member Author

Updated with related changes for WebSockets. #267

{
get
{
var webSocketFeature = WebSocketFeature;
Copy link

Choose a reason for hiding this comment

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

Why not use the property directly? Do we need to assign it to a variable?

@muratg
Copy link

muratg commented Apr 22, 2015

Code changes look good to me and reflect the discussions from the API review.

@davidfowl does new API surface look good to you?

Challenge(properties: null, authenticationScheme: authenticationScheme);
}

public abstract void Challenge(AuthenticationProperties properties, string authenticationScheme);
Copy link
Member

Choose a reason for hiding this comment

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

I agree with Brent's issue, we should probably switch scheme to be the first parameter here to be consistent with sign in/signout

@Tratcher Tratcher merged commit 43a38c1 into dev Apr 24, 2015
@Tratcher Tratcher deleted the AllAuth branch April 24, 2015 16:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants