
f2az5 (f2az5) asked a question.
So we are developing an web-app in Laravel as back-end and VueJs as front end, in which we would like to implement Okta as SSO. We would like to implement authentication in following manner.
- User comes on our website and provide username and password via login form.
- Send post request to our server with user inputs.
- Verify user credentials on Okta and generate token
- Send token as response of login api.
I have searched the 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
- Is this even possible in PHP?
- If yes, Can you provide any documentation or working demo to check?
- If not, What are the other option to achieve this?
Thank you in advance.

Hi @f2az5 (f2az5) , Thank you for reaching out to the Okta Community!
Please check out the following resources to see if it helps with your implementation:
https://developer.okta.com/code/php/
https://developer.okta.com/blog/2019/09/05/laravel-authentication
My advice would also be to reach out to the devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions, this medium is more inclined towards Okta core products.
Hope this helps!
Thank you @Mihai Negoita (Employee) for forwarding this.
I have checked the sample code from https://github.com/okta/samples-php/tree/develop/custom-login . Can we achieve something similar without okta-widget?