tagged [owin]

What is the difference between using Owinhost.exe to run an OWIN web service or a Console App

What is the difference between using Owinhost.exe to run an OWIN web service or a Console App I´m starting developing a new web application and looking at using OWIN. One thing that I can´t work out f...

26 Jan at 08:24

How to use IAppBuilder-based Owin Middleware in ASP.NET 5

How to use IAppBuilder-based Owin Middleware in ASP.NET 5 ASP.NET 5 (ASP.NET vNext) is OWIN based like Katana was, but has different abstractions. Notably `IAppBuilder` has been replaced by `IApplicat...

20 Jul at 16:58

GenerateEmailConfirmationTokenAsync default expiration timespan

GenerateEmailConfirmationTokenAsync default expiration timespan What is default expiration timespan of GenerateEmailConfirmationTokenAsync? and what kind of errors should I get from ConfirmEmailAsync?...

'Owin.IAppBuilder' does not contain a definition for 'MapSignalR'

'Owin.IAppBuilder' does not contain a definition for 'MapSignalR' ### Error > 'Owin.IAppBuilder' does not contain a definition for 'MapSignalR' and no extension method 'MapSignalR' accepting a first a...

19 Nov at 14:20

How can I pass a SSL certificate to Nowin when using Nancy

How can I pass a SSL certificate to Nowin when using Nancy So I am using [Nancy](http://nancyfx.org/) with [Nowin](https://github.com/Bobris/Nowin). The beauty of using Nowin is I don't have to mess a...

24 Aug at 15:32

Asp.Net MVC 5 without Owin?

Asp.Net MVC 5 without Owin? Mvc 5 seems to depend on Owin, which is great if you want to self host or run on a Mac. But lets assume I just want to run under IIS just like the previous versions and I'm...

19 Apr at 21:27

ASP.Net MVC Alternative Login to identity

ASP.Net MVC Alternative Login to identity After reading tutorials and trying out, I have found login with Identity is convoluted, inflexible way. Changing to use username and completely remove Email w...

Getting Current OwinContext without using HttpContext

Getting Current OwinContext without using HttpContext With I can recieve the current OwinContext in web applications. With `OwinContext.Set` and `OwinContext.Get` I store values which should be presen...

4 Aug at 04:9

The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener

The server factory could not be located for the given input: Microsoft.Owin.Host.HttpListener I have implemente signalR in window service. ``` private IDisposable SignalR { get; set; } public void Con...

27 Nov at 11:23

Why do I get "Cannot resolve symbol 'CreatePerOwinContext'"?

Why do I get "Cannot resolve symbol 'CreatePerOwinContext'"? I have a self hosted owin Web Api and I'm trying to use a single instance of my EF Context per Owin Request. Here is my config code for the...

2 Jan at 01:30

TraceListener in OWIN Self Hosting

TraceListener in OWIN Self Hosting I am using `Microsoft.Owin.Hosting` to host the following, very simple web app. Here is the call to start it: Here is the startup class I am using: I am runni

30 Jul at 13:26

Hangfire dashboard with Servicestack self host

Hangfire dashboard with Servicestack self host I'm using ServiceStack for self host (AppSelfHostBase), and I need to use hangfire dashboard. I do add Owin Startup class in the project but when I run i...

12 Jan at 10:36

SignalR 2.0.2 and Owin 2.0.0 dependency conflict

SignalR 2.0.2 and Owin 2.0.0 dependency conflict I'm trying to get SignalR working in an MVC5 project with individual accounts. The MVC project has by default Owin 2.0.0 and all of the Owin.* componen...

30 Jun at 18:57

Hw to pass arguments to my own Startup class?

Hw to pass arguments to my own Startup class? I'm trying to develop a web api self hosting app using OWIN. In my own XyzStartup class, I need an external argument: contentFolderPath. However, I didn't...

2 Jun at 04:7

Get IPrincipal from OAuth Bearer Token in OWIN

Get IPrincipal from OAuth Bearer Token in OWIN I have successfully added OAuth to my WebAPI 2 project using OWIN. I receive tokens and can use them in the HTTP Header to access resources. Now I want t...

14 Dec at 17:0

OWIN HttpListener not located

OWIN HttpListener not located When I try to start : I get the following exception. What could be the root cause? ``` System.MissingMemberException was caught HResult=-2146233070 Message=The server f...

Get the user's email address from Azure AD via OpenID Connect

Get the user's email address from Azure AD via OpenID Connect I'm trying to authenticate users to my site with their Office 365 accounts, so I have been following the guidance on using the OWIN OpenID...

What is the difference in the use of UserStore and UserManager in ASP.NET Identity?

What is the difference in the use of UserStore and UserManager in ASP.NET Identity? I'm very new to ASP.NET Identity and please bear with me if this question seems silly. When I read the definition fo...

2 Jun at 07:46

How to fix "IDX20804: Unable to retrieve document from: '[PII is hidden]'" error in C#

How to fix "IDX20804: Unable to retrieve document from: '[PII is hidden]'" error in C# Trying to get an access token to use MS Graph in my WebApi. But keep getting this error, > [TaskCanceledException...

12 Feb at 10:26

How to set the NameClaimType in an application using OWIN security middleware

How to set the NameClaimType in an application using OWIN security middleware I have created an OWIN web application that is using OpenId Connect for authentication via `Microsoft.Owin.Security.OpenId...

23 May at 12:14

The type or namespace IAppBuilder could not be found(missing using a directive pr an assembly reference)

The type or namespace IAppBuilder could not be found(missing using a directive pr an assembly reference) I am working on an Asp.Net MVC 4 Application in which I am using SignalR 2.0.1 and I Mapped it ...

8 Jan at 03:18

No assembly found containing an OwinStartupAttribute Error

No assembly found containing an OwinStartupAttribute Error This error The following errors occurred while attempting to load the app. - No assembly found containing an OwinStartupAttribute. - The give...

29 Aug at 02:50

OWIN OpenIdConnect Middleware IDX10311 nonce cannot be validated

OWIN OpenIdConnect Middleware IDX10311 nonce cannot be validated I have an application using the OWIN middleware for OpenIdConnect. The startup.cs file uses the standard implementation of app.UseOpenI...

WebApi + Simple Injector + OWIN

WebApi + Simple Injector + OWIN I am trying to use SimpleInjector with OWIN in a WebAPI project. However, the following line in `ConfigureAuth` fails The exception is I am using `container.RegisterWeb...

Owin auth - how to get IP address of client requesting the auth token

Owin auth - how to get IP address of client requesting the auth token Using Owin Security, I'm trying to make the API have 2 methods of authentications. Is there a property in the `context` variable (...

21 Sep at 04:28