Questions tagged [owin]

Open Web Interface for .NET that describes how components in a HTTP pipeline should communicate.

OWIN defines a standard interface between .NET web servers and web applications, which describes how components in a HTTP pipeline should communicate. The goal of the OWIN interface is to decouple server and application, encourage the development of simple modules for .NET web development, and, by being an open standard, stimulate the open source ecosystem of .NET web development tools.


Useful links


Related tags

4634 questions
2
votes
1 answer

Azure Active Directory with .Net Core

The Microsoft Default Identity did not fit my project needs so i had to write a custom filter to handle authentication. I do allow users to use Azure Active Directory, by storing a reference table with the ActiveDirectory User Id, and their user id…
Tom Crosman
  • 1,137
  • 1
  • 12
  • 37
2
votes
0 answers

Keycloak REST API called with C#

I need an easy and simple way to consume the Keycloak REST APIs from https://www.keycloak.org/docs-api/5.0/rest-api/index.html with ASP.NET Core C#. I tried using the https://github.com/mattmorg55/Owin.Security.Keycloak but where do I go from there?…
Gemada
  • 21
  • 1
  • 4
2
votes
0 answers

OWIN Middleware not able to set http status code

I am running WebAPI with just one Middleware and not able to set response HTTP status code. I am using OnSendingHeaders() and able to add headers and set response body, but status code is not getting set and response always has it set as 200 OK. I…
Kapil
  • 21
  • 3
2
votes
2 answers

Web API - Issues with HttpContext.Current in owin for integration testing using moq

I am building a Web API application which will be hosted in an IIS environment. In order to perform end to end integration testing of my service(no mocking), I am using OWIN. The problem is deep down in my service architecture, at the repository…
Shaggy
  • 5,422
  • 28
  • 98
  • 163
2
votes
2 answers

Asp.net UseOpenIdConnectAuthentication not working in Azure

I am using UseOpenIdConnectAuthentication to authenticate users. My application code works fine locally. But, when I run it on Azure, the SecurityTokenValidated event is never fired. Consequently, the code runs fine but the user is never…
jason
  • 3,821
  • 10
  • 63
  • 120
2
votes
1 answer

Create table from model

I use OWIN and identity for authorization and authentication in my project after first hit the tables created. Now I need to add some additional tables. so I created my custom model called Author. Now from the created model I need to create table…
Michael
  • 13,950
  • 57
  • 145
  • 288
2
votes
1 answer

Is is possible to use Owin.Security.OpenIdConnect.Server in .NET Framework 4.5

While using Owin.Security.OpenIdConnect.Server in 4.5 framework facing the below error : error CS1061: 'IAppBuilder' does not contain a definition for 'UseOpenIdConnectServer' and no accessible extension method 'UseOpenIdConnectServer'…
Maki
  • 51
  • 4
2
votes
0 answers

Jwt type won't load alongside integrated twilio

I have integrated twilio and it has updated packages of jwt and now i am getting error for this UseJwtBearerAuthentication() method. How can i resolved this error as i cannot downgrade my packages since it has a dependency for twilio? private…
Jayant Belekar
  • 243
  • 1
  • 3
  • 9
2
votes
1 answer

How to migrate from Google+ Login to Google Sign In in c# MVC

My web site allows users to register and log in with their Google Account. My c# MVC app uses the feature the template offered using Microsoft.AspNet.Identity.Owin. I have received an email from Google that they are shutting down Google+. The email…
Mozzak
  • 201
  • 3
  • 16
2
votes
0 answers

Owin WebAPI Max Concurrent Connections

public IHttpActionResult TestSpeed() { Sleep(10000); } Called the above API concurrently, I can only manage to squeeze approximately 16 connections within 12 seconds. I think this is kinda low. Is there any hard cap concurrent limit in Owin…
s k
  • 4,342
  • 3
  • 42
  • 61
2
votes
1 answer

How to implement OAuth 2.0 Authorization Code Grant from Single-Page Application?

We have an Angular SPA backed by an ASP.NET Web API that uses the OAuth 2.0 Resource Owner Password Credentials Grant with a Bearer Token for authorisation. The API uses Microsoft.Owin.Security.OAuth to implement OAuth. We're trying to integrate…
user10998602
  • 107
  • 1
  • 9
2
votes
1 answer

ASP.NET OWIN Middleware - modify HTTP response

I need to intercept all the aspx and js file requests and to replace some text labels if they are present. This middleware should work as an IIS module, obviously without interfering with the normal flow of the web application. I wrote some code…
Rick
  • 1,042
  • 2
  • 14
  • 34
2
votes
0 answers

C# Google OAUTH2 using OWIN on Mono results in "System.Web.HttpException (0x80004005): headers have already been sent"

I've followed a number of tutorials for adding google OAUTH2 authentication to an existing MVC project, but I end up with the same issue involving a 404 to the client and the following trace generated: System.Web.HttpException (0x80004005): headers…
2
votes
1 answer

How to delete cookie using IOwinContext in OwinMiddleware and .Net MVC 5?

is there possibility to remove cookie based on cookie name in OwinMiddleware? I know that IOwinContext has own cookie abstraction based on Set-Cookie Header and HttpContext has own HttpCookieCollection. In my middleware I don't have access to…
Michal16511
  • 77
  • 1
  • 6
2
votes
0 answers

AspNet.WebApi.Versioning changes model binding behavior for IEnumerable parameters

I recently introduced the package Microsoft.AspNet.WebApi.Versioning (github) in my project in order to version my API. It works like a charm, but unfortunately, it has a weird side effect. It changes the default parameter value for a IEnumerable
Sven-Michael Stübe
  • 14,560
  • 4
  • 52
  • 103
1 2 3
99
100