Skip to content

Principle not being set when self-hosting webapi #8

@michael-wolfenden

Description

@michael-wolfenden

I believe the reason is the the principle needs to be set on the current owin context:

request.GetRequestContext().Principal = principal;

I made the changes above, and it worked as expected

see http://stackoverflow.com/a/21420794 for more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions