sen5241b Posted May 28, 2021 Share Posted May 28, 2021 Do you use the OS userids or do you keep them separate in MYSQL? Must users login to a website and request a token to use for REST API requests? Did you use a framework provided method? I need something ultra-simple Quote Link to comment https://forums.phpfreaks.com/topic/312802-authenticating-rest-apis-to-your-server-how-do-you-do-it/ Share on other sites More sharing options...
requinix Posted May 28, 2021 Share Posted May 28, 2021 Don't even consider operating system users. Should have absolutely nothing to do with the people on your website. Users should have some sort of account on your site before they get a token. If they didn't then how would you know which token corresponds to which user? If you have a framework and it provides authentication then you should use that. If not then you can't really do that, can you? Do you want simple or do you want secure? Quote Link to comment https://forums.phpfreaks.com/topic/312802-authenticating-rest-apis-to-your-server-how-do-you-do-it/#findComment-1586861 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.