Home > database >  PHP-Laravel Implement user authentication via username and password
PHP-Laravel Implement user authentication via username and password

Time:05-25

So I am developing a web-app with Laravel as back-end and VueJs as front end, in which I would like to implement Okta as SSO. I would like to implement authentication in following manner.

  1. User comes on the website and provide username and password via login form.
  2. Send post request to the server with user inputs.
  3. Verify user credentials on Okta and generate token
  4. Send token as response of login api.

I have searched the Okta documents about how to implement this. And I found Identity engine implementation via Identity engine sdk. But I have not found any such Identity engine sdk for PHP or Laravel. So my question is

  1. Is this even possible in PHP?
  2. If yes, Can you provide any documentation or working demo to check?
  3. If not, What are the other option to achieve this? Thank you in advance.

CodePudding user response:

You could consider using Laravel Socialite with a open-source provider for Okta. https://socialiteproviders.com/Okta/#okta

CodePudding user response:

Good question. Will this help you? - https://github.com/okta/okta-sdk-php

  • Related