Questions tagged [owin-middleware]

OWIN Middleware in the IIS integrated pipeline

266 questions
0
votes
2 answers

Owin pipeline per tenant

I'm looking at options to implementing different authentication methods in a SAAS application. The saas application is a single instance that services all tenants. To allow different authentication methods i could create different owin pipelines per…
S. Westerhof
  • 11
  • 1
  • 2
0
votes
1 answer

Owin providers in a multi tenant web application where each domain has its own providers

I'm trying to have a solution where one web application is serving multiple domains, for each domain I would like to configure its own providers, using the app id and secret for the external provider, I would like the cookie domain and the providers…
Yovav
  • 2,557
  • 2
  • 32
  • 53
0
votes
1 answer

Dissecting ASP.NET MVC Identity for OAuth Bearer Authentication

I'm learning how to put the Asp.Net MVC Identity 2.0 to work. I have this code that works for OAuth Bearer [HttpGet] [ActionName("Authenticate")] [AllowAnonymous] public String Authenticate(string user, string password) { …
0
votes
1 answer

Mvc5 ExternalLoginCallback : "await AuthenticationManager.GetExternalLoginInfoAsync()" fails with "sequence contains more than one element"

Why do i keep getting this error with external login callback. Here is what am doing. imports using Microsoft.Owin.Security.MicrosoftAccount; using Microsoft.Owin.Security; My AccountController.cs class . . . . . var loginInfo = await…
0
votes
1 answer

C# Owin Self Host - Expected header 100-continue

We encountered problem using OWIN with selfhosting. We have webserver running from console application. It is NOT running on IIS. HTTP 100-continue specification: http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3 OWIN 100-continue…
0
votes
1 answer

Specifying the "display" query string field for Microsoft.Owin.Security.Facebook's challenge URL

I am using the Microsoft.Owin.Security.Facebook 3.0.1 NuGet package to add Facebook authentication into my Web API 2.2 application. I have the code working such that when a user attempts to log in, Microsoft's middleware redirects them to Facebook's…
NathanAldenSr
  • 7,841
  • 4
  • 40
  • 51
0
votes
0 answers

Azure Mobile Services Custom LoginProvider redirect issues in Universal App with AuthenticationHandler

The Problem: MobileServiceClient.LoginAsync never exits the login dialog - even after the access token gets returned. The Environment: Backend: Windows Azure Mobile Service .Net/C# Frontend: Windows 8.1 Universal Store App. .Net/C# The…
-1
votes
0 answers

How can I get request's certificate from Owin context in c#?

If I add a certificate to http client like this. And I have a web application set up with a owin middleware. How can I get this certificate from request and check on it? var handler = new HttpClientHandler(); var bytes =…
KKKK
  • 11
  • 3
-1
votes
1 answer

Access-Control-Allow-Origin error during token generation in OWIN enabled application

I am using C# Web API + CORS + Owin from Angular 8 application. I am getting below error while generating the token. I looked at variuos articles but I could not solve the problem. Access to XMLHttpRequest at 'http://localhost:60544/Token' from…
-1
votes
1 answer

Ninject Alter Binding base on Owin.Context.User.Identy

I need to change ninject binding base on User.Identity. I have this scenario: base on user Actor claim which I use for my own purpose. I have to inject on my class constructor the value of Claims.Actor, how can I do that? public class C { …
whebz
  • 111
  • 3
  • 12
-1
votes
2 answers

Google OAuth2 asking for "offline access"

I'm using the Microsoft.Owin.Security.Google (version 3.0.1) middlware to provide Google OAuth to my app. It's configured like so: app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions { AuthenticationType = "Google", Caption =…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
1 2 3
17
18