Hi All,
I am trying to implement a project for my self learning.
I am trying to create a project with both basic and token based authentication using web api / .net core. I would like to have the project wherein a user can call swagger and opt for Basic authentication or token based authentication (using parameters to api call).
Eg. The user would pass 1 for basic authentication with username/password or 2 for token based authentication. The project would call the required controller to authenticate the user with the user desired authentication.
Is there a sample code available.
Thanks,
Ashvin