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

Revisit identity factoring and react to Auth 2.0 #651

Closed

Description

@prasannavl

The SignInManager currently is too coupled to cookies. It should ideally be able to switch methods for persistence. Currently, there's no way to use the SignInManager and enable a simple token style authentication using either the standard Bearer tokens, or a custom headers which are required for pure API services.

Either that, or the SignInManager should be moved into a namespace that emphasizes that most of its functionality only work with cookies. Shouldn't be under a very generic purview.

Activity

  1. changed the title [-]SignInManager too tied to cookies - Adopt hooks for web API.[/-] [+]Decouple SignInManager from cookies[/+] on Nov 28, 2015
  2. added this to the Backlog milestone on Nov 30, 2015
  3. rustd commented on Nov 30, 2015

    @rustd

    So far Identity is based on cookies only. We can consider this in a future release.

  4. alexsandro-xpt commented on Dec 2, 2015

    @alexsandro-xpt

    There a substitute for Identity to work with Bearer tokens?

  5. brockallen commented on Dec 3, 2015

    @brockallen

    So far Identity is based on cookies only. We can consider this in a future release.

    Sorry Pranav, but this concept makes no sense. Cookies authenticate users in a browser and are unrelated to ASP.NET Identity. An identity management library (such as ASP.NET Identity) is what stores and validates users credentials. It's really independent of the consuming application. These two "things" are separate because you don't have to use them together. Conflating cookie authentication and identity management is not helpful.

    I suspect it was easier to just put the SignInManager into the same assembly as the UserManager, and thus say "we are based on cookies", but it's a disingenuous answer. The part that helps with issuing cookies should be in its own assembly. The core of ASP.NET Identity should not have a dependency on HTTP.

    The separation will be important once you consider other types of authentication, such as OAuth2 (and not the OAuth2 authentication middleware that's in ASP.NET 5).

    Related: the brute-force code in the SignInManager should be in the core and separate from the code that manages the cookies. You will want those features from the OAuth2 endpoints.

  6. HaoK commented on Dec 16, 2015

    @HaoK
    Member

    FWIW these were split apart in 2.0

  7. modified the milestones: , Backlog on Jun 2, 2016
  8. HaoK commented on Jun 2, 2016

    @HaoK
    Member

    Moving milestone for consideration

  9. joshgarwood commented on Sep 20, 2016

    @joshgarwood

    Is this still not finished? Which is to say, are we not able to use signInManager if we're using JwtAuthentication? I'm using .Net Core and jwt tokens, but would also like to leverage signInManager... is this possible yet? Or is there another recommendation you could make?

  10. modified the milestones: 1.1.0, 1.1.0-preview1 on Oct 12, 2016
  11. removed this from the 1.1.0 milestone on Oct 26, 2016
  12. HaoK commented on Oct 26, 2016

    @HaoK
    Member

    Clearing for triage

  13. HaoK commented on Jan 11, 2017

    @HaoK
    Member

    @blowdart we should clean this up and use this issue to track spliting Identity Core from SignInManager + Auth

  14. 7 remaining items

  15. changed the title [-]Split Identity into Identity.Core (User/RoleManager) / Identity.Authentication (Cookies)[/-] [+]Consider removing dependency on Http for Identity[/+] on Mar 7, 2017
  16. HaoK commented on Mar 7, 2017

    @HaoK
    Member

    Actually we can't since the caller needs to still pass in the HttpContext

  17. changed the title [-]Consider removing dependency on Http for Identity[/-] [+]Revisit identity factoring and react to Auth 2.0[/+] on Mar 7, 2017
  18. HaoK commented on Mar 7, 2017

    @HaoK
    Member

    But still switching this bug over to track revisiting identity factoring and react to the auth 2.0 changes

  19. HaoK commented on May 23, 2017

    @HaoK
    Member
  20. modified the milestones: 2.0.0-preview2, 2.0.0 on May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions