Id3242 The Security Token Could Not Be Authenticated Or Authorized

Posted on  by 

Hello Readers,


We had to setup a new content source in our search and suddenly we got this error while going to the Content sources in Search Service Application.
Id3242 the security token could not be authenticated or authorized dynamics 365Id3242 The Security Token Could Not Be Authenticated Or AuthorizedI googled n didn't find much information so i went through the ULS logs and found these entries.
  1. 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:.
  2. The security token could not be authenticated or authorized, skillsoft connector, KBA, LOD-SF-LMS-CON, Connectors, Problem.
Id3242 The Security Token Could Not Be Authenticated Or Authorized

ID3242: The security token could not be authenticated or authorized Unanswered I tried already like that, username as: Test2.CRM@ipsdubai.com but it does not worked.

Id3242 The Security Token Could Not Be Authenticated Or Authorized Azure

An operation failed because the following certificate has validation errors: Subject Name: CN=###############.com Issuer Name: CN=###############.com Thumbprint: 9238C86F4CF817870AFAB778E9E5E140D7ADE82F Errors: The root of the certificate chain is not a trusted root authority..
STS Call: Failed to issue new security token. Exception: System.IdentityModel.Tokens.SecurityTokenValidationException: ID4257: X.509 certificate
'CN=###############.com' validation failed by the token handler.
An exception occurred when trying to issue security token: ID3242: The security token could not be authenticated or authorized..
the actual issue was that one of the certificates were not added to 'SPTrustedRootAuthority'
Fixing this is simple

Faultexception Id3242 The Security Token Could Not Be Authenticated Or Authorized

$cert = Get-PfxCertificate C:###############.pfx
New-SPTrustedRootAuthority -Name '###############' -Certificate $certId3242 the security token could not be authenticated or authorized sharepoint 2013
If you have a certificate that requires a password
Use IE and go to 'Central Admin'/_admin/ManageTrust.aspx and upload the certifcate.
That's how i got the issue fixed.
Id3242 the security token could not be authenticated or authorized dynamics 365Hope it helps :)
Happy Coding

Id3242: The Security Token Could Not Be Authenticated Or Authorized

Guruparan Giritharan

Coments are closed