Hi @Yichen Name
The article you shared will only work with SharePoint Online. More setup is required to use Azure Access Control Service (ACS) in an on-premises environment. Please see Use ACS to authorize low-trust provider-hosted add-ins on an on-premises SharePoint site for more information. Also, please note that to do this setup you need to have a SharePoint Online tenant.
Your other option is to use high-trust. For more information on the setup for high-trust, please see Create high-trust SharePoint Add-ins.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.