.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
satyapriyanayak
Subhransu Sekhar Jena
abhays
SP
DotnetUser
Post New Web Links

The security token could not be authenticated or authorized

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :.NET Framework
 

Hello Everyone,

A certain government agency that I need to communicate with has set up a web service that makes use of the SOAP security extensions, and I am fumbling around in the dark about how to get all this working. As you might expect the assistance you can get from a goverment office can be less that sufficient at times. So let me just give some background information and describe the problem as I see it.

This web service that I am connecting to requires that I also be able to send files as attachments. The server currently only supports MIME and DIME attachments, which means that I must use WSE 2.0 SP3, and not WSE 3.0 because 3.0 only supports attachments with MTOM. Since WSE 2.0 SP3 is a .Net 1.1 Framework assembly, I am using Visual Studio 2003 for this project so that I am only using a single version of the Framework. The Project itself is in Visual Basic .Net because I am more familiar with it than other languages, but if someone wants to help me and only speaks C#, I can translate well enough to get by.

The web service currently allows authentication by passwords or by X.509 certificates. The powers that be plan to shut down the password based authentication in the coming year, so my long term goal is to get X.509 authentication working, however currently I am just trying to get password based authentication working first


View Complete Post


More Related Resource Links

The security token could not be authenticated or authorized

  
Hi,
I created a soap request based on a input trace file. I can not find success in actually consumeing this service from any soap client.
I can successfully consume the service from within Visual Studio, but for purpose of preformance testing etc. i need to be able to consume it from client
Below you can find the request and below that the wsepolicycache.config file.
I have a suspicion that the reason why i can't successfully call this service from within soap client is due to simple policy usage on the service and i can't find any policies in the actual request ?
Request:
<?xml version="1.0" encoding=

Geneva Framework: Building A Custom Security Token Service

  

A Security Token Service, or STS, acts as a security gateway to authenticate callers and issue security tokens carrying claims that describe the caller. See how you can build a custom STS with the "Geneva" Framework.

Michele Leroux Bustamante

MSDN Magazine January 2009


Windows Identity Foundation Security Token Service can't stay logged in

  
I'm using the Windows Identity Foundation **(WIF)** Security Token Service **(STS)** to handle authentication for my application which is working all well and good. However I can't seem to get any long running login with the STS. From my understanding I shouldn't care about the client tokens at the application level since they can expire all they want to and it should redirect me to the STS and as long as they're still logged in on the STS it should refresh their application token. Yet it doesn't seem to want to keep them signed in. Here's what occurs in my login.aspx on the STS var cookie = FormsAuthentication.GetAuthCookie(userName, persistTicket); if (persistTicket) cookie.Expires = DateTime.Now.AddDays(14); Response.Cookies.Add(cookie); var returnUrl = Request.QueryString["ReturnUrl"]; Response.Redirect(returnUrl ?? "default.aspx"); Which was taken almost directly from existing application using normal Forms Auth. From my web.config <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="2880" name=".STS" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false" /> </auth

Security Context Token verification failed. (The security protocol cannot verify the incoming messag

  
Hello, I would like implement Message Lever security with username/password authentication on HTTP. My environment looks something like this.  Server Side - Message lever security is configured on service.           <security mode="Message">             <message clientCredentialType="UserName" negotiateServiceCredential="True"/>           </security> - CA and self signed certificates are created on server and configured. ServiceCredentials are looks like this <serviceCredentials> <serviceCertificate findValue="CertForIdm" storeLocation="LocalMachine" storeName="My" x509FindType="FindByIssuerName" /> <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="IfMembershipProvider" /> </serviceCredentials> Client Side (References are generated by VS) - Binding configuration                 <binding name="WSHttpBinding_IWaypoint2" closeTimeout="00:11:00"                     openTimeout="00:11:00" receiveTimeout="00:10:00" sendTimeout="00:11:00"  &nb

The Security Token Service is not available

  
I set up SharePoint 2010 Beta on a Windows 2008 R2 server and am going through the Central Administration - Review problems and solutions: All Reports - The Security Token Service is not available and the failing service is SPSecurityTokenService.Should not this service if available been installed during installation time?  It says "The Security Token Service is not issuing tokens.  The service could be malfunctioning or in a bad state.I don't want to go any further with setting up this until I can get an answer on how to fix this?Thanks

An exception occurred when trying to issue security token: The trusted login provider did not supply

  
We are facing the issue after got authenticated by OpenID and forwarded back to Sharepoint, it crashed at the /_trust/ page the error "Operation is not valid due to the current state of the object." and event log shows this:   "An exception occurred when trying to issue security token: The trusted login provider did not supply a token accepted by this farm... "    

Security Token Service is not available

  

After converting a Web Application from Classic mode to Claims Based using Powershell I can no longer access my Web Applications.

When turnign off custom errors and setting Call Stack to true. I see the below error message:

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

Looking into Central Admin I see an error for the Security Token Service. The Security Token Service is not available. Explanation:

The Security Token Service is not issuing tokens. The service could be malfunctioning or in a bad state.

If I look in the App Event Logs I see:

An exception occurred when trying to issue security token: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error..

I have applied the WCF Hotfix and restrated the server. What is causing this issue?

I am using SharePoint Foundation 2010

Any assistance is greatly needed!


WCF: security token could not be satisfied because authentication failed.

  

Hi,

I am newbie to WCF.... Please bare me..I have WCF service and client on the same machine with certificates(trusted root authority). Please find Client and server config below.

Below exception resulted when client tries to call service.

NOTE: This exception resulted when revocationMode= Online. But this is working fine when revocationMode= NoCheck.

<authentication certificateValidationMode="ChainTrust" revocationMode="Online"/>

But this should work in Online revocation mode for me.

 

Server Error in '/WCFClient' Application.
--------------------------------------------------------------------------------

The request for security token could not be satisfied because authentication failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.

Source Error:

Line 58:     }
Line 59:
Line 60:     public string Ping(string inParam) { return base.Channel.Ping(inParam);

Just installed SP2010 RTM. Now receiving "The Security Token Service is not available" error.

  

I have spent the better part of today researching this error and have not been able to resolve it. I made sure the "SharePoint Web Services" application pool was started. I have also rebooted the server. There was a lot of mention about a HotFix, but it was already installed. Anyone have any other ideas?

Here is the error:

The SharePoint Health Analyzer detected a condition requiring your attention. The Security Token Service is not available.

The Security Token Service is not issuing tokens. The service could be malfunctioning or in a bad state.

Administrator should try to restart the Security Token Service on the boxes where it is not issuing tokens. If problem persists, further troubleshooting may be available in the KB article. For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=160531".
 

How does cross domain users (in the same forest) get authenticated/ authorized in MOSS 2007 ?

  

How does cross domain users (in the same forest) get authenticated/ authorized in MOSS 2007 site (Windows Authentication).
Is it possible? If yes, then how? and if no then appreciate any workaround.

Regards.

 


Sharepoint 2010 security token services is not working.

  

Hello,

I have sharepoint 2010 server , i m tryiing to search on sharepoint site but i am getting error "security token service is not avaible"

I have already applied wcf hotfix but stil getting exception when i open this service ,so is there any workaround to start this service or any workaround to search on sharepoint site(I am using sharepoint.office.search dll to search on sharepoint site)

 

Please reply as its really urgent

 

Thanks in advance!!

 


An exception occurred when trying to issue security token: The security token username and password

  

Hi,

  I get a problem authenticating people in Sharepoint 2010 LDAP provider.

  Right now, I can successfully config the central admin for LDAP provider, (I can search people that in LDAP server,assign ldap people without problem). Also I can search LDAP people in my site. Then I tried to login using ldap username and password, it shows "An exception occurred when trying to issue security token: The security token username and password could not be validated.."

  First, I thought maybe there were some typo in my site web.config, so I enabled the windows login, log into my site using my windows account, there, I can search LDAP user in my site with no problem. So I believe that my site web.config is alright. The only thing left is the STS.But I am not sure what could be wrong , because membership and role part are just simple copied and pasted from my site web.config.

  Here is the web.config for STS. Please Help. Thank you.

<?xml version="1.0" encoding

WCF: Establishing Trust Between WCF Web Services and SharePoint 2010 Security Token Service, Part 3

  
Enable federated HTTP binding for a web service and establish trust between the Windows Communication Foundation (WCF) web service and the SharePoint 2010 security token service.

Security Token Service is not available

  

I have a problem similar to others posted, but with a different error detail and I have tried most of the fixes listed in the other posts with no success.

We just performed an in-place upgrade from SP2007 to SP2010 standard.  We are using Kerberos authentication in a two server farm, both servers are Windows 2008 SP2.  Immediately after the upgrade, the subject error message appeared in Central Admin.  When I try to navigate to http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc, I get the following Error and Stack Trace...any help will be GREATLY appreciated.

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[MethodAccessException: Microsoft.SharePoint.IdentityModel.SPSecurityTokenServiceHostFactory..ctor()]
   System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend