okta / okta-sdk-php

PHP SDK for the Okta API
Apache License 2.0
38 stars 71 forks source link

How do i authenticate a user? Please share an example #33

Closed anmolagar closed 6 years ago

bretterer commented 7 years ago

Hi @anmolagar This SDK is currently a management SDK that allows you to create and edit users and groups. It gives you the ability to also do the lifecycle actions.

The majority of what is documented at the following are handled by this SDK. We will be working in the future to extend the SDK to handle more cases in the future.

https://developer.okta.com/docs/api/resources/users.html https://developer.okta.com/docs/api/resources/groups.html

You can also see the autogenerated documentation at:

https://developer.okta.com/okta-sdk-php/latest

anmolagar commented 7 years ago

Hi,

Thanks for your reply. I am trying to migrate from stormpath to okta. We use pretty advance level of stormpath features from stormpath pho sdk. Can you suggest some php okta sdk with something similar? Or do I need to use authentication API endpoints instead of an sdk?

On Wed, 28 Jun 2017 at 10:15 PM, Brian Retterer notifications@github.com wrote:

Hi @anmolagar https://github.com/anmolagar This SDK is currently a management SDK that allows you to create and edit users and groups. It gives you the ability to also do the lifecycle actions.

The majority of what is documented at the following are handled by this SDK. We will be working in the future to extend the SDK to handle more cases in the future.

https://developer.okta.com/docs/api/resources/users.html https://developer.okta.com/docs/api/resources/groups.html

You can also see the autogenerated documentation at:

https://developer.okta.com/okta-sdk-php/latest

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/okta/okta-sdk-php/issues/33#issuecomment-311718906, or mute the thread https://github.com/notifications/unsubscribe-auth/AINFdpbTEiVaSQYZ104Wsm2ch7YZDnJLks5sIoMkgaJpZM4OH2CD .

--

Anmol Agarwal Technology Expert [image: www.codemaya.com] http://www.codemaya.com tel: + <javascript:void(0);>9 <javascript:void(0);>1 989-117-0407 <javascript:void(0);> [image: https://www.facebook.com/codemayacom] https://www.facebook.com/codemayacom https://in.linkedin.com/in/anmolagar

bretterer commented 7 years ago

@anmolagar right now, this is the only official php sdk for Okta. For authentication, we suggest using the OIDC workflow. For information about how to use it, you can take a look at our sample applications we have set up in Slim and Symfony

https://github.com/okta/samples-php-slim-3 https://github.com/okta/samples-php-symfony

Even if you are not using the frameworks, this should give you a good example of how our OIDC flows work in the Okta system.

If you need more in-depth help, please feel free to reach out to us via email at developers@okta.com