Base solution for your next web application
Open Closed

How to use TOKEN BASED AUTHENTICATION #2558


User avatar
0
bilalhaidar created

Hi,

I noticed that the application is configured to use Bearer Tokens.

What else I need to configure so that WebAPI calls could make use of those tokens on mobiles instead of cookies?

Thanks, Bilal


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You don't have to configure anything. You can use it as described in here <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Core#token-based-authentication">https://aspnetzero.com/Documents/Develo ... entication</a>.

    Please select the correct document according to your template version here <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide">https://aspnetzero.com/Documents/Development-Guide</a>.

    I have shared a documetn for ASP.NET Core & JQuery version.

  • User Avatar
    0
    bilalhaidar created

    Thank you. I read this document.

    Is it implemented by default for Web APIs or I have to write the code to use it? Do I need to change how users login, etc. ?

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Yes Is it implemented by default for Web APIs, you don't need to write any code in your project.

  • User Avatar
    0
    bilalhaidar created

    Oh Perfect :-) Thanks a lot. So the example in the documentation is just to see how it works,etc.

    Regards Bilal

  • User Avatar
    0
    ismcagdas created
    Support Team

    Yes, exactly :)