WIF STS ID3242: The security token could not be authenticated or authorized

后端 未结 2 1877
不思量自难忘°
不思量自难忘° 2021-01-25 02:41

I\'m getting the following error in my client application when it tries to authenticate to my service:

ID3242: The security token could not be authenticat

2条回答
  •  情话喂你
    2021-01-25 03:45

    In my case, turning tracing on revealed one more exception that was thrown before

    ID3242: The security token could not be authenticated or authorized

    Use this to turn on tracing on the WCF side:

    
    
      
        
          
        
      
    
    
    

    Again, in my case, the trace files revealed the following exception:

    ID1038: The AudienceRestrictionCondition was not valid because the specified Audience is not present in AudienceUris. Audience: http://some.th.ing/

    Turns out the audienceUri was not correct in the WCF Web.config.

    Hope this helps

提交回复
热议问题