locked
How to add custom claim to identity template? RRS feed

  • Question

  • User-81839486 posted

    I want to add another claim field to standard scaffolded identity login template that is taken from register page. What should I change in register razor page? Should I do sth with entity framework and do some migrations? Can I sent claims from form to database via standard sql connection and operations? Is it valid?

    Monday, August 10, 2020 10:33 PM

All replies

  • User475983607 posted

    I want to add another claim field to standard scaffolded identity login template that is taken from register page. What should I change in register razor page? Should I do sth with entity framework and do some migrations? Can I sent claims from form to database via standard sql connection and operations? Is it valid?

    Unclear.  Claims are dynamically added to users and totally in your hands.  When the user logins, in any claims associated with the user is automatically added to the user principal. 

    Tuesday, August 11, 2020 1:06 AM