Ir para o conteúdo

Cognito Generating UUID V7 instead of UUID V4

1

Cognito Generating for new users, UUID V7 instead of UUID V4, that is supposed to be default. I could not find where to change it in order to generate as UUID V4.

feita há 2 anos778 visualizações
2 Respostas
1

It "appears" to be a UUID v7 however the variant section of the UUID is invalid. It should be characters 8 - a, however it seems to be random.

This causes issues with validation...

respondido há um ano
0

Cognito is responsible for generating an arbitrary unique string for the sub for its user pool. You can't control (or make assumptions) about the format. From https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#cognito-user-pools-standard-attributes

sub

The sub attribute is a unique user identifier within each user pool.

See also https://repost.aws/questions/QUfWN5qGq8R5WsocQaP1A9Dg/cognito-sub-attribute-seems-to-be-no-more-a-valid-uuid

AWS
respondido há 2 anos
  • @hakanson, can you explain why its not a valid UUID? This seems an odd design choice by AWS

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.