Installation
The installation is quite simple just like the standard Magento 2 extensions.
Updated 17 April 2024
Magento 2 SSO or Magento 2 Single Sign-On module allows the integration of the Magento store with third-party applications. However, the user can sign in to the third-party applications through their Magento 2 sign-up credentials. Using Magento 2 SSO, the admin can easily integrate multiple clients for Single Sign-On using their Magento credentials. The admin can also integrate the UVdesk support portal with the user’s Magento store.
The installation is quite simple just like the standard Magento 2 extensions.
After uploading the module folder, you need to run the following commands in the Magento 2 root directory:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
magentobaseurl/sso/sso/index/redirect_uri/#value/client_id/#valueMethod: GET Response: redirecturl?token=#tokenval Description: get the token Note: that redirect_uri and client_id is mandatory field append to URL 2.) After that, at the API end(Magento end) client id will verify that the client is registered at the Magento end or not? If the customer is registered then a login page will appear to log in. Thus, After login a page appears with authorizing and cancel button. If authorized then a token will be provided and append in the redirect URL. But if the client is already login with some account then a page appears with authorizing and cancel button. If the client is not authorized then an error message will be shown or the user cancels to authorize then it redirects to the redirect URL. 3.)After that client will hit again the Magento SSO module API with the provided token and client id
magentobaseurl/sso/sso/accesscustomerdata/client_id/#value/authToken/#valueMethod: GET Response: JWT encoded string or Array(with error key) Description: get the user email information if client_id and auth token verified we send the customer email and name with the expiration of 2 minutes encoded by JWT using client secret key else error will be provided in $response[‘error] form Hence, The client has to decode the data using JWT via the client secret key generated at Magento end with a success or error field.
magentobaseurl/sso/sso/checkcredential/client_id/#value/client_secret_key/#valueMethod: GET Response: Array Description: check the detail entered at the client end is correct?
Current Product Version - 5.0.0
Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x
Be the first to comment.