Não é possível se conectar ao Brand Portal com o erro "JWT expirou" | AEM

Depois de configurar a integração do Adobe Experience Manager (AEM) Assets com o Brand Portal, se você encontrar a mensagem de erro O JWT expirou, você deve alterar a hora do Sistema Operacional para uma hora válida ou usar o NTP (Network Time Protocol).

Descrição description

Ambiente

  • Adobe Experience Manager

  • Adobe Experience Manager Assets

Problema/Sintomas

Após a configuração da integração do AEM Assets com o Brand Portal, aqui em Visão geral do Experience Manager Assets Brand Portal: configurar o Experience Manager Assets com o Brand Portal na Documentação do AEM,

Testar conexão no agente de replicação retorna as mensagens de erro semelhantes a estas:

28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : Using user mac-mybptenant-replication for building content.
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : Creating content for path /content
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : Create new HttpClient for mybptenant MP Replication Agent Default
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : * HTTP Version: 1.1
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : * Using OAuth 2.0 Authorization Grants
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : * OAuth 2.0 User: mac-mybptenant-replication
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : Failed to get an access token for user: mac-mybptenant-replication msg: failed to get access token from authorization server status: 400 response: {"error":"invalid_grant","error_description":"JWT has expired"}
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : Sending POST request to https://mybptenant.brand-portal.adobe.com/bin/receive?sling:authRequestLogin=1
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : sent. Response: 401 Unauthorized
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : Replication (TEST) of /content not successful. Conversation follows
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : ------------------------------------------------
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : Sending message to mybptenant.brand-portal.adobe.com:-1
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> POST /bin/receive HTTP/1.0
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> Action: Test
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> Path: /content
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> Handle: /content
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> Referer: about:blank
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> Content-Length: 0
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : >> Content-Type: application/octet-stream
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : --
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << HTTP/1.1 401 Unauthorized
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Date: Fri, 03 Mar 2017 04:29:05 GMT
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Server: Apache/2.4.10 (Unix) Communique/4.2.1
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << WWW-Authenticate: Basic realm="Sling (Development)"
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << X-Frame-Options: SAMEORIGIN
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << X-XSS-Protection: 1; mode=block; report=https://service.brand-portal.adobe.com/security-bugs/log/mac
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Content-Security-Policy: default-src 'self' https://*.adobe.com https://*.assetsadobe.com http://*.assetsadobe.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.brand-portal.adobe.com https://brand-portal.adobe.com https://*.marketing.adobe.com https://marketing.adobe.com https://use.typekit.net https://*.tt.omtrdc.net https://*.services.adobe.com https://*.adobelogin.com https://*.adobemc.com https://*.scene7.com https://assets.adobedtm.com https://*.guided.ss-omtrdc.net https://*.omniture.com https://*.demandbase.com; style-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.brand-portal.adobe.com https://brand-portal.adobe.com https://*.marketing.adobe.com https://marketing.adobe.com https://use.typekit.net https://*.tt.omtrdc.net https://*.guided.ss-omtrdc.net https://*.omniture.com https://*.scene7.com; img-src * data: ; font-src * data: ; frame-src 'self' https://*.brand-portal.adobe.com https://*.marketing.adobe.com https://*.omniture.com https://*.services.adobe.com https://services.adobe.com https://*.adobelogin.com; object-src 'self' https://*.scene7.com http://*.assetsadobe.com https://*.assetsadobe.com; report-uri https://service.brand-portal.adobe.com/security-bugs/log/mac
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Timing-Allow-Origin: https://*.brand-portal.adobe.com/
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Set-Cookie: renderid=rend2; path=/;Secure
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Vary: User-Agent,Accept-Encoding
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : << Content-Length: 0
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : <<
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : Message sent.
28.02.2017 18:39:51 - ERROR - mp_replication_agent_default_mybptenant : ------------------------------------------------
28.02.2017 18:39:51 - INFO - mp_replication_agent_default_mybptenant : Replication (TEST) of /content not successful.

Mensagens Especificadas

Failed to get an access token
JWT has expired

Resolução resolution

Causa:
A causa é a diferença de tempo entre a instância do AEM e a nuvem do Brand Portal.

A diferença causa a expiração do JWT (JSON Web Token).

Solução:
Siga estas etapas:

  1. Confirme a hora do AEM no sistema operacional.
  2. Altere o horário para um horário válido ou use o NTP (Network Time Protocol).
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f