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

Principle not being set when self-hosting webapi #8

Open
michael-wolfenden opened this issue Feb 9, 2015 · 2 comments
Open

Principle not being set when self-hosting webapi #8

michael-wolfenden opened this issue Feb 9, 2015 · 2 comments

Comments

@michael-wolfenden
Copy link

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

@jamiekurtz
Copy link
Owner

thanks for looking in that, Michael. I'll take a look shortly.

On Mon, Feb 9, 2015 at 1:43 AM, Michael Wolfenden [email protected]
wrote:

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


Reply to this email directly or view it on GitHub
#8.

@ghost
Copy link

ghost commented Mar 31, 2015

What is this? :)

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

2 participants