wif

Using Custom RoleProvider with Windows Identity Foundation - STS

穿精又带淫゛_ 提交于 2019-12-06 04:07:08
I created STS that does the authentication part. It uses Custom Membership provider. After successful login I get redirected to my RP website. All works fine in terms of authentication. I have defined a CustomRolesProvider defined in web.config of my RP website. It uses the username returned by STS to fetch the roles for that user from RP's database. When I use Roles.GetRolesForUser I do get the right roles. I have the following in the web.config of my RP to allow only admin to give access to admin folder. And the sitemap provider has securityTrimmingEnabled="true" <location path="admin">

How do I configure WCF to use a custom Realm in URN format with Azure ACS?

柔情痞子 提交于 2019-12-05 22:31:29
How do I make my WCF client authenticate using the ACS to my internally hosted WCF service? The issue revolves around setting a custom Realm (which I can't figure out how to set.) My ACS is configured similar to the ACS Samples however the "Realm" is defined as shown below. Excerpt from Azure ACS Configuration page Client Side Code EndpointAddress serviceEndpointAddress = new EndpointAddress( new Uri( "http://localhost:7000/Service/Default.aspx"), EndpointIdentity.CreateDnsIdentity( GetServiceCertificateSubjectName() ), new AddressHeaderCollection() ); ChannelFactory<IStringService>

How to authenticate a request from a c# application to a WIF enabled ASP.NET WebApi application using a SAML assertion

对着背影说爱祢 提交于 2019-12-05 10:13:34
问题 I have setup ThinkTecture identity server as a STS, Have setup a web api project, and used the "identity and access" tool in visual studio and pointed it to my federation metadata to enable federated authentication using WIF. This is what the related portion of web.config looks like: <system.identityModel> <identityConfiguration saveBootstrapContext="true"> <audienceUris> <add value="http://localhost:41740/" /> </audienceUris> <securityTokenHandlers> <add type="System.IdentityModel.Tokens

WIF, STS and Membership tables

蹲街弑〆低调 提交于 2019-12-05 09:58:19
I'm currently looking into using WIF for an upcoming project and would appreciate some help finding information. I've looked around a bit and don't have a decisive answer. I have a current site that runs off ASP membership, and I have a large number of users in those tables. Are there any trusted custom STS's out there that use the membership table? Would my current site, which uses ASP membership require much change to use WIF and a STS? Do I have to use a certificate when using WIF? What is the difference between ADFS and ASP Membership implementation? Are their any easier MS based solutions

How do I remove an existing claim from a ClaimsPrinciple?

扶醉桌前 提交于 2019-12-05 09:14:01
问题 I am making a developer tool for impersonating Roles for an intranet site to allow developers to quickly act as any Role as needed. Roles defined are Developer, Team Lead, Team Member, Engineering, Marketing, Guest and a tool on the web page makes a call to a Web Api to add or remove the Claim ... well I can add but can't seem to find out where the .RemoveClaim(claim) or .TryRemoveClaim(claim) can be accessed to get this working. Do I have to create a custom claims manager to get this

Implementing SSO in a .NET Web Farm for several e-commerce websites with WIF?

杀马特。学长 韩版系。学妹 提交于 2019-12-05 04:27:16
I have what I think is a fairly complicated question so I will do my best to articulate it here. I am looking for a single sign on (SSO) solution. I am aware of many of the options out there but have ruled most of them out as I add criteria that they need to meet. Here are the criteria: 1.) The SSO must be added to an existing "system". 2.) The existing "system" consists of "X" number of websites. 3.) All of the "x" websites are e-commerce. 4.) The websites are all owned by company Y, for whom 95% of the system was built in-house. 5.) Each of the "X" number of websites is in the same Web Farm.

WIF manually generate federationmetadata.xml

风格不统一 提交于 2019-12-05 03:26:32
I am playing with windows identity foundation and I am trying to create an MVC.NET based Security Token Service and use it as the Single Sign On application. My only problem is that I don't know how to generate the federationmetadata.xml file. Is there any tool to generate this file manually? I created a custom metadata generator that does what VS does when you create the STS project. I had to use Reflection to call the code because as usual everything useful is internal in Microsoft's assemblies. More about it here http://stsmetadataeditor.codeplex.com/ This tool can be used modify an

Azure WCF Service with Azure Active Directory Authentication

故事扮演 提交于 2019-12-05 02:36:37
问题 I know this question seems similar to other son here, but I have tried the answers posted Here: Securing WCF 4.5 service using Azure ACS 2.0 And Here: Federated authentication (single-sign-on) for a WCF REST/HTML-service on Azure Ans neither seem to be relevant. Here is what I have so far. An azure cloud service with various worker roles, and a WCF web role with REST and SOAP Endpoints An azure active directory account with a couple users ACS namespace. The WCF service will be used by a

Reporting Services LocalReport and WIF

六眼飞鱼酱① 提交于 2019-12-05 01:58:15
I have a wcf webservice that uses WIF for authentication. Part of the responsibility of this webservice is to generate a report and email it. If I render the report with data only everything is fine. If I include any report parameters, report constants, or even just DateTime.Now I get the following exception: An error occurred during local report processing.Failed to load expression host assembly. Details: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed I can run the same

ADFS 2.0 Error ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry

…衆ロ難τιáo~ 提交于 2019-12-05 01:21:53
The error: ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry. To accept security tokens from this issuer, configure the IssuerNameRegistry to return a valid name for this issuer. The situation: I have 3 or 4 asp.net apps running on a single IIS server (my QA environment), that this morning began returning this error. I start out on an anonymous site, click a link to a secure section, get redirected to my federation services proxy, authenticate, and am redirected back to my secure page, but this error appears. This link and a bunch of others indicate that the