ws-federation

wfresh not working with WS-Federation via ADFS

孤人 提交于 2019-12-25 11:53:02
问题 I have an application that authenticates against ADFS 2 via WS-Federation. I look for a specific claim when I get the response back from ADFS and based on that claim, I am able to authorize the user into my application. I want to create an enhancement in which when a user authenticates against ADFS and comes back to my application WITHOUT the claim I require, that I redirect them back to the Identity Provider (ADFS), but this time FORCING them to provide their credentials again. I wrote my

How do I support streaming in WSFederationHttpBinding?

白昼怎懂夜的黑 提交于 2019-12-23 03:09:56
问题 I have a wcf service which is used to upload and download large files to server. I'm using MTOM message encoding and I want to use streamed transfer mode. But we are using wsFederationHttpBinding. How do I support streaming in wsFederationHttpBinding? My WCF Service web.config code is given below, <wsFederationHttpBinding> <binding name="UploadserviceFederation" messageEncoding="Mtom" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" > <readerQuotas maxStringContentLength=

UseWsFederationAuthentication - AuthenticationException: The remote certificate is invalid according to the validation procedure

元气小坏坏 提交于 2019-12-22 17:22:33
问题 I am getting an error every time I try to run my MVC project on my development box through VS2015 and IIS Express. It uses this code to authenticate against our ADFS server. app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(new CookieAuthenticationOptions()); app.UseWsFederationAuthentication( new WsFederationAuthenticationOptions { Wtrealm = realm, MetadataAddress = adfsMetadata }); This is the error I am getting in the

UseWsFederationAuthentication - AuthenticationException: The remote certificate is invalid according to the validation procedure

送分小仙女□ 提交于 2019-12-22 17:21:55
问题 I am getting an error every time I try to run my MVC project on my development box through VS2015 and IIS Express. It uses this code to authenticate against our ADFS server. app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); app.UseCookieAuthentication(new CookieAuthenticationOptions()); app.UseWsFederationAuthentication( new WsFederationAuthenticationOptions { Wtrealm = realm, MetadataAddress = adfsMetadata }); This is the error I am getting in the

XHR requests fail when an ADFS authenticated session expires

帅比萌擦擦* 提交于 2019-12-22 13:53:06
问题 We have a site which relies on federated authentication using Active Directory Federation Services (ADFS) and WSFederationAuthenticationModule. The site also employs a set of XHR requests fired upon user interaction. One particular example is a drop-down menu which allows the user to impersonate other users. Another one is the faceting functionality on a site-wide search page. The problem is that the session expires when a user stays inactive on a page for certain amount of time. In normal

BootstrapContext is null on ClaimsIdentity

耗尽温柔 提交于 2019-12-21 10:08:09
问题 I have created a new ASP.NET MVC application with .NET 4.5. I have successfully set up authentication with an STS. The authentication flow is working fine and I am able to get the ClaimsIdentity, containing the desired claims, on Thread.CurrentPrincipal. Now I need the bootstrap token to secure the calls to my service layer. I have set the saveBootstrapContext to true on the identityConfiguration element. <system.identityModel> <identityConfiguration saveBootstrapContext="true"> However, the

WS-Federation sign-in Asp.NET 5 MVC 6 ADFS

感情迁移 提交于 2019-12-20 19:44:09
问题 Hello so I've been trying to achieve WS-Fed SSO on my MVC6 web application, I've read a bit on authentification and all to identify my requirements. I have to use WsFederationAuth so no oauth nor saml protocol would work for me. Edit : After @Pinpoint suggestion I tried to use owin middleware to achieve the connection, but I will use the full framework DNX451 rather than DNXCore but it's something while waiting for ws-fed to be supported by Vnext. Pinpoint adapter extension: public static

WsFederation Authentication login loop

♀尐吖头ヾ 提交于 2019-12-20 03:42:21
问题 I am experiencing a problem with a login loop when using WsFederation Authentication in my MVC web application. I used visual studio to create the scaffolding of the web application and to setup the WsFederation in the Startup.cs . Which generates the following block of code: public class Startup { private static string realm = ConfigurationManager.AppSettings["ida:Wtrealm"]; private static string adfsMetadata = ConfigurationManager.AppSettings["ida:ADFSMetadata"]; public void Configuration

Securing WCF 4.5 service using Azure ACS 2.0 [duplicate]

本秂侑毒 提交于 2019-12-18 13:48:16
问题 This question already has an answer here : Azure Active Directory and WCF [closed] (1 answer) Closed 6 years ago . How can I secure my WCF 4.5 service using Azure ACS 2.0? 回答1: Here is a basic tutorial: WCF (SOAP) Service With Federated Authentication Then you can look at samples by Dominick Baier and Brock Allen here: Thinktecture.IdentityModel.45. Also you can try to use Visual Studio tool for adding STS reference and point it to Azure ACS. AFAIK endpoint Uri is something like this for

What's the difference between ADFS, WIF, WS Federation, SAML, and STS?

非 Y 不嫁゛ 提交于 2019-12-18 09:54:13
问题 These are numerous technologies and buzzwords used for single sign-on with Microsoft services. Can someone explain ADFS, WIF, WS Federation, SAML, and STS (Security token service), including where and when each is being used. 回答1: From a big picture viewpoint: Assume an ASP.NET browser-based application that requires authentication and authorization. The application can roll its own or it can outsource it. WIF is a .NET library that allows ASP.NET to implement this outsourcing. It talks to an