How to secure web api in asp.net c# (offboarding and crossboarding users.)

Deshmukh, Ashish 1 Reputation point
2024-04-16T18:28:32.6833333+00:00

Hi ,

How to secure web api in asp.net c#

i want to secure the web api for offboarding and crossboarding users.

Example-offboarding : we have created one api, so we want to secure those api. suppose if a employee has left the organization and he knows the API url and API parameter, so in this case how to secure the api.

Example-Crossboarding : we have created one api, so we want to secure those api. suppose if a employee is in the same organization but he moved from one team to another team and he knows the API url and API parameter, so in this case how to secure the api.

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
341 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 66,061 Reputation points
    2024-04-17T21:27:11.7+00:00

    I assume your referring to an appid and secret. this should not be know by users or stored in code. at run time a verified access token should be used to fetch the values. Azure key vault or similar is a good place to store these secrets.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.