An error occurred when processing the security token

Get-Federationtrust|Set-Federationtrust -Refreshmetadata