You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
I'm trying to access the service from console client, which is protected by Identity Server2. Every time I'm getting the error: Authorization for token issuance failed because the user is anonymous from thinktectureIdentityServer trace log and not getting into the service.
From the browser I'm able to login into the service.
I'll paste my sample code here:
<!--The certificateValidationMode="None" setting is insecure and used only to ease running this sample application. This setting should not be used in production deployments.-->
<certificateValidation certificateValidationMode="None" />
<issuerNameRegistry type="System.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<trustedIssuers>
<add thumbprint="FE1DBA8ED6715C7B5121368529B108870CE0CBFB" name="https://localhost/FedProvider/issue/hrd" />
</trustedIssuers>
</issuerNameRegistry>
</identityConfiguration>
</audienceUris>
<applicationService>
<claimTypeRequired>
<!--Following are the claims offered by STS. Add or uncomment claims that you require by your application and then update the federation metadata of this application.-->
<claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" optional="true" />
<claimType type="http://schemas.microsoft.com/ws/2008/06/identity/claims/role" optional="true" />
<claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" optional="true" />
</claimTypeRequired>
</applicationService>
</service>
I'm trying to access the service from console client, which is protected by Identity Server2. Every time I'm getting the error: Authorization for token issuance failed because the user is anonymous from thinktectureIdentityServer trace log and not getting into the service.
From the browser I'm able to login into the service.
I'll paste my sample code here:
Service web config:
<system.serviceModel>
</system.serviceModel>
<system.identityModel>
</system.identityModel>
<system.identityModel.services>
</system.identityModel.services>
<microsoft.identityModel>
</microsoft.identityModel>
The Client:
namespace Client
{
class Program
{
static string _idsrvEndpoint = "https://localhost/FedProvider/issue/wstrust/mixed/username";
static string _realm = "https://localhost:44350/";
Any help is grateful, as it has already taken my lot of time.
The text was updated successfully, but these errors were encountered: