Istores API Documentation
Get started

Istores SSO Integration

This guide walks you through the OAuth 2.0 SSO integration flow with Istores.


Step 1 — Create a Provider

Register a provider at Istores to enable SSO integration for your application.


Step 2 — Obtain Your Credentials

After creating a provider, you will receive your client_id and secret. Keep these safe — they are required for all subsequent OAuth steps.


Step 3 — Redirect the Customer to the Authorization URL

Send the customer to the following URL to initiate the OAuth flow:

Code
nova.istores.co.il/oauth/authorize

Include the following query parameters:

ParameterDescription
client_idYour client ID obtained in Step 2
redirect_uriYour redirect URL where the customer will be sent after authorization
response_typeMust be code
scopesThe scopes you are requesting from the customer

Example URL:

Code
nova.istores.co.il/oauth/authorize?client_id=test_client_id&redirect_uri=https://nova.istores.co.il/test/returnUrlOauth&response_type=code&scopes=products:read

Available Scopes

ScopeDescription
products:readRead access to the store's product catalog
products:createCreate new products
products:updateUpdate existing products
products:deleteDelete products
pages:readRead access to pages
pages:createCreate new pages
pages:updateUpdate existing pages
pages:deleteDelete pages
customers:readRead access to customers
customers:createCreate new customers
customers:updateUpdate existing customers
customers:deleteDelete customers
charge:walletCharge a customer's wallet
charge:cardCharge a customer's card
pbl:readRead access to pay-by-link resources
pbl:createCreate pay-by-link resources
pbl:updateUpdate pay-by-link resources
pbl:deleteDelete pay-by-link resources

After the customer authorizes, they will be redirected to your redirect_uri with a code parameter. Exchange this code for an access token to make authenticated API requests.


Step 4 — Exchange the Code for an Access Token

After the customer is redirected back to your redirect_uri, extract the code parameter from the URL and make a POST request to obtain an access token.

Endpoint:

Code
POST /oauth/token

Request Parameters:

ParameterDescription
client_idYour client ID obtained in Step 2
client_secretYour client secret obtained in Step 2
codeThe authorization code received at your redirect_uri

Response:

Code(json)
{ "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 36000000 }
FieldDescription
access_tokenThe JWT Bearer token
token_typeAlways Bearer
expires_inToken validity duration in seconds
Last modified on