WIF 4.5 BootstrapContext security token null

后端 未结 3 1716
粉色の甜心
粉色の甜心 2020-12-16 10:54

I am using the new 4.5 WIF stuff to authenticate users of the website and to secure the communication between my MVC website and WCF services.

I have the website con

相关标签:
3条回答
  • 2020-12-16 11:25

    I have solved the problem by deleting the browser cookie including the Fedauth cookie. Once debugging again I was able to get all needed values

    0 讨论(0)
  • 2020-12-16 11:27

    I have stumbled upon the same issue. I see the Token to have the xml representation of the token and the SecurityToken being null. I also noticed that this is really easy to reproduce by killing w3wp.exe.

    0 讨论(0)
  • 2020-12-16 11:36

    I had the same issue when I implemented the ClaimsAwareWebFarm sample from microsoft. The problem arises when you add this section to the web.config:

      <caches>
        <sessionSecurityTokenCache type="CacheLibrary.SharedSessionSecurityTokenCache, CacheLibrary">
          <!--cacheServiceAddress points to the centralized session security token cache service running in the web farm.-->
          <cacheServiceAddress url="http://localhost/SecurityTokenCacheService/SessionSecurityTokenCacheService.svc" />
        </sessionSecurityTokenCache>
      </caches>
    

    Thank you Matt for this workaround!

    0 讨论(0)
提交回复
热议问题