Base solution for your next web application
Open Closed

Identity Server Persisting Client Info to DB #5179


User avatar
0
tugrulkarakaya created

Hi, I have implemented Identity Server at my project. is there any document or how-to's on aspnet zero showing persisting client names and password on db instead of defining in the config file.

"ClientId": "client1", "AllowedGrantTypes": [ "password", "client_credentials", "refresh_token" ], "ClientSecrets": [ { "Value": "11112234-f4a3-4edc-d8ea-32132cb40e13" } ],


2 Answer(s)
  • User Avatar
    0
    tugrulkarakaya created

    any implementation like explained at <a class="postlink" href="https://damienbod.com/2017/12/30/using-an-ef-core-database-for-the-identityserver4-configuration-data/">https://damienbod.com/2017/12/30/using- ... tion-data/</a> this seems a full implementation but I need just to save client info to db.

    regards, Tugrul

  • User Avatar
    0
    ismcagdas created
    Support Team

    @tugrulkarakaya,

    You can use Settings to store the values you want to store in the database, <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Setting-Management">http://aspnetboilerplate.com/Pages/Docu ... Management</a>.

    Then, instead of defining an entity, you can define a POCO class. Set some of it's properties using configuration and some others using the values retrieved from Setting Manager.