[help IN sql] Need to bulk insert users with sql, need to fill the securitystamp and concurrency stamp #61
Replies: 1 comment
-
Allthough we use ASP.NET Core Identity in our templates to show how to do user management, it is not part of our products. It is maintained by Microsoft. So probably their issue tracker is a better place to ask this question. Here's what I know about the topic though: |
Beta Was this translation helpful? Give feedback.
-
IdentityServer version
latest
.NET version
8
Description
Hello,
I need to import a legacy database to aspnetuser in identity server and i must do it in sql.
from what i see in the code i need to reproduce this codes in SQL
so for the id i think this code in sql will work
lower(NEWID())
but unfortunatrly the guid for the security stamp is overrided by this (intentionally or not i dont know) :
could you tell me why it is not a simple GUID?
and can you help me transform it in sql
i tried this
CONVERT (CHAR(32) , CRYPT_GEN_RANDOM(20))
but it does not generate base32 stringthanks a lot for your help
Reproduction steps
No response
Expected behavior
No response
Logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions