locked
.Net Core Web API with Authentication RRS feed

  • Question

  • User-305496339 posted

    Hi Friends,

    I was wondering how would I create a .Net Core Web API in Visual Studio Code with Authentication from the CLI. I wanted to use the Identity UI. I noticed that when you try to create a .Net Core Web API in Visual Studio it won't allow you to unless you enter some Azure values. Thanks!  

    Tuesday, February 23, 2021 8:00 PM

Answers

  • User475983607 posted

    I was wondering how would I create a .Net Core Web API in Visual Studio Code with Authentication from the CLI. I wanted to use the Identity UI. I noticed that when you try to create a .Net Core Web API in Visual Studio it won't allow you to unless you enter some Azure values. Thanks!  

    Web API does not have a UI.  Create an Razor Pages application and add Web API to the project.  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 23, 2021 9:24 PM
  • User475983607 posted

    Thanks for your help. You made a great point that the API does not have a UI. But I was wondering can I  add Identity to my web api?  And let the Web API handle the non user interface aspects of Identity? Thanks !!!!

    Sure.  This could be a large undertaking or something simple.   Have you thought about what parts of Identity you plan to implement?  What features you want?  Anything???

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 23, 2021 9:53 PM

All replies

  • User475983607 posted

    I was wondering how would I create a .Net Core Web API in Visual Studio Code with Authentication from the CLI. I wanted to use the Identity UI. I noticed that when you try to create a .Net Core Web API in Visual Studio it won't allow you to unless you enter some Azure values. Thanks!  

    Web API does not have a UI.  Create an Razor Pages application and add Web API to the project.  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 23, 2021 9:24 PM
  • User-305496339 posted

    Thanks for your help. You made a great point that the API does not have a UI. But I was wondering can I  add Identity to my web api?  And let the Web API handle the non user interface aspects of Identity? Thanks !!!!

    Tuesday, February 23, 2021 9:39 PM
  • User475983607 posted

    Thanks for your help. You made a great point that the API does not have a UI. But I was wondering can I  add Identity to my web api?  And let the Web API handle the non user interface aspects of Identity? Thanks !!!!

    Sure.  This could be a large undertaking or something simple.   Have you thought about what parts of Identity you plan to implement?  What features you want?  Anything???

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 23, 2021 9:53 PM