[FE] Tela de autenticação não configura cookies de autenticação prejudicando ambiente em que mdmCdsShortURLAuthentication=true

Description

How to reproduce


How it works:

  • Access Carol through Carol’s URL
  • Login (using carol’s normal flow)
  • You open the Carol App Clockin and it works as expected.
  • You are able to see the images.

How it does not work

The following endpoint created the cookies:

curl -X 'GET' \
  'https://api.carol.ai/api/v1/oauth2/token/TOKEN' \
  -H 'accept: application/json'

Expected behavior


  • We have two opportunities to have this flow smooth:
    • The login app flow should define the cookies registering the user is authenticated (same that happens on the above endpoint (api/v1/oauth2/token/TOKEN).

Definitive solution:


TABELA 01 - Questões Gerais

Questões gerais (obrigatórias) Respostas
1) Qual o seu segmento TOTVS? Resposta: TOTVS RH
2) Qual o produto / Carol APP relacionado? Resposta: clockinapp
3) Informe o ambiente impactado: https://icomon.carol.ai/icomon
4) Informe a fase/estágio (  ) É um Projeto              ( X ) É cenário em Produção
5) Informe a prioridade desta issue.
  • MÉDIA;
Informe o tipo de problema/dúvida que descreve a sua situação. O ambiente https://icomon.carol.ai/icomon é apenas um exemplo, este item ocorre em todos os clientes.
 
Percebemos que os cookies de autenticação são setados  nas telas da Carol porém não na tela de autenticação da Carol, prejudicando o fluxo quando o usuário final entra direto no frontend web do carolapp.
 
Este problema ocorre apenas com os cookies, as informações guardadas no localstorage são configuradas corretamente.
 
Unable to render embedded object: File (image-2024-02-08-10-48-14-749.png) not found.
Não configurando corretamente os cookies de autenticação as imagens não são exibidas quando a autenticação do shorturl está ativada:
Unable to render embedded object: File (image-2024-02-08-10-48-30-075.png) not found.

 

Activity

Bruno Furtado 15 February 2024, 18:36 Jira Internal Users

@Ingo Wagner , Clockin confirmou que deu certo. Pode encerrar o ticket.

Automation for Jira 14 February 2024, 20:03 Jira Internal Users

Message thread link on #red-phone channel:

https://totvscarol.slack.com/archives/C03NT4US9J9/p1707937389778559

Automation for Jira 14 February 2024, 20:03 Jira Internal Users

@Robson Thanael Poffo ,

@Geny Isam Hamud Herrera ,
This issue was planned to be delivered until 2024-03-01. You can check that by consulting the issue in the Due Date field.

Dates already planned for this issue: 2024-03-01

If External Issue Link field is filled, customer was also informed on JIRA TOTVS.