title | language_tabs | language_clients | toc_footers | includes | search | highlight_theme | headingLevel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Authentication Service v1.0.0 |
|
|
false |
darkula |
2 |
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
services
Base URLs:
- HTTP Authentication, scheme: bearer
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/apple-oauth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/apple-oauth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/apple-oauth-redirect
Name | In | Type | Required | Description |
---|---|---|---|---|
code | query | string | false | none |
state | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Apple Redirect Token Response | TokenResponse |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded'
};
fetch('/auth/oauth-apple',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/x-www-form-urlencoded'
};
fetch('/auth/oauth-apple',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/oauth-apple
Body parameter
client_id: string
client_secret: string
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ClientAuthRequest | false | none |
Example responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | POST Call for Apple based login | None |
Code samples
const inputBody = '{
"refreshToken": "string",
"username": "string",
"password": "string",
"oldPassword": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'string'
};
fetch('/auth/change-password',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"refreshToken": "string",
"username": "string",
"password": "string",
"oldPassword": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'string'
};
fetch('/auth/change-password',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /auth/change-password
Body parameter
{
"refreshToken": "string",
"username": "string",
"password": "string",
"oldPassword": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
Authorization | header | string | false | none |
body | body | ResetPasswordPartial | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | If User password successfully changed. | None |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
}';
const headers = {
'Content-Type':'application/json'
};
fetch('/auth/login',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
};
const headers = {
'Content-Type':'application/json'
};
fetch('/auth/login',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/login
Gets you the code that will be used for getting token (webapps)
Body parameter
{
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | LoginRequest | false | none |
Example responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Auth Code that you can use to generate access and refresh tokens using the POST /auth/token API | None |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'device_id':'string'
};
fetch('/auth/login-token',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'device_id':'string'
};
fetch('/auth/login-token',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/login-token
Gets you refresh token and access token in one hit. (mobile app)
Body parameter
{
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
device_id | header | string | false | none |
body | body | LoginRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Token Response Model | TokenResponse |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/auth/me',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/auth/me',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/me
To get the user details
Example responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | User Object | None |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"code": "string",
"clientId": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'device_id':'string'
};
fetch('/auth/token',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"code": "string",
"clientId": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'device_id':'string'
};
fetch('/auth/token',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/token
Send the code received from the POST /auth/login api and get refresh token and access token (webapps)
Body parameter
{
"code": "string",
"clientId": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
device_id | header | string | false | none |
body | body | AuthTokenRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Token Response | TokenResponse |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"refreshToken": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'device_id':'string',
'Authorization':'string'
};
fetch('/auth/token-refresh',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"refreshToken": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'device_id':'string',
'Authorization':'string'
};
fetch('/auth/token-refresh',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/token-refresh
Gets you a new access and refresh token once your access token is expired. (both mobile and web)
Body parameter
{
"refreshToken": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
device_id | header | string | false | none |
Authorization | header | string | false | none |
body | body | AuthRefreshTokenRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | New Token Response | TokenResponse |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/facebook',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/facebook',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/facebook
Body parameter
client_id: string
client_secret: string
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ClientAuthRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | POST Call for Facebook based login | TokenResponse |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/facebook-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/facebook-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/facebook-auth-redirect
Name | In | Type | Required | Description |
---|---|---|---|---|
code | query | string | false | none |
state | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Facebook Redirect Token Response | TokenResponse |
Code samples
const inputBody = '{
"username": "string",
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth/forget-password',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"username": "string",
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth/forget-password',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/forget-password
Body parameter
{
"username": "string",
"client_id": "string",
"client_secret": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ForgetPasswordDto | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Success Response. | None |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"token": "string",
"password": "string",
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth/reset-password',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"token": "string",
"password": "string",
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth/reset-password',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /auth/reset-password
Body parameter
{
"token": "string",
"password": "string",
"client_id": "string",
"client_secret": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ResetPasswordWithClient | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | If User password successfully changed. | None |
Code samples
fetch('/auth/verify-reset-password-link?token=string',
{
method: 'GET'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
fetch('/auth/verify-reset-password-link?token=string',
{
method: 'GET'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/verify-reset-password-link
Name | In | Type | Required | Description |
---|---|---|---|---|
token | query | string | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Check if Token Is Valid and not Expired. | None |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/google',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/google',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/google
Body parameter
client_id: string
client_secret: string
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ClientAuthRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | POST Call for Google based login | TokenResponse |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/google',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/google',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/google
Name | In | Type | Required | Description |
---|---|---|---|---|
client_id | query | string | false | none |
client_secret | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Google Token Response (Deprecated: Possible security issue if secret is passed via query params, please use the post endpoint) | TokenResponse |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/google-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/google-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/google-auth-redirect
Name | In | Type | Required | Description |
---|---|---|---|---|
code | query | string | false | none |
state | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Google Redirect Token Response | TokenResponse |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/instagram',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/instagram',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/instagram
Body parameter
client_id: string
client_secret: string
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ClientAuthRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | POST Call for Instagram based login | TokenResponse |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/instagram-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/instagram-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/instagram-auth-redirect
Name | In | Type | Required | Description |
---|---|---|---|---|
code | query | string | false | none |
state | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Instagram Redirect Token Response | TokenResponse |
Code samples
const inputBody = '{
"client_id": "string",
"client_secret": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/keycloak',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"client_id": "string",
"client_secret": "string"
};
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/auth/keycloak',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/keycloak
POST Call for keycloak based login
Body parameter
client_id: string
client_secret: string
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | ClientAuthRequest | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Keycloak Token Response | TokenResponse |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/keycloak',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/keycloak',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/keycloak
Name | In | Type | Required | Description |
---|---|---|---|---|
client_id | query | string | false | none |
client_secret | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Keycloak Token Response (Deprecated: Possible security issue if secret is passed via query params, please use the post endpoint) | TokenResponse |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/auth/keycloak-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/auth/keycloak-auth-redirect',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/keycloak-auth-redirect
Name | In | Type | Required | Description |
---|---|---|---|---|
code | query | string | false | none |
state | query | string | false | none |
Example responses
200 Response
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Keycloak Redirect Token Response | TokenResponse |
Code samples
const inputBody = '{
"email": "string",
"data": {}
}';
const headers = {
'Content-Type':'application/json'
};
fetch('/auth/sign-up/create-token',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"email": "string",
"data": {}
};
const headers = {
'Content-Type':'application/json'
};
fetch('/auth/sign-up/create-token',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/sign-up/create-token
Body parameter
{
"email": "string",
"data": {}
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | SignupRequestDto | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Sucess Response. | None |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"email": "string",
"password": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth/sign-up/create-user',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"email": "string",
"password": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth/sign-up/create-user',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth/sign-up/create-user
Body parameter
{
"email": "string",
"password": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | LocalUserProfileDto | false | none |
Example responses
200 Response
{
"email": "string",
"password": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Sucess Response. | LocalUserProfileDto |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/auth/sign-up/verify-token',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/auth/sign-up/verify-token',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth/sign-up/verify-token
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Sucess Response. | None |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/count',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth-clients/count
Permissions |
---|
NotAllowed |
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuthClient model count | loopback.Count |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'PUT',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /auth-clients/{id}
Permissions |
---|
NotAllowed |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | number | true | none |
body | body | AuthClient | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | AuthClient PUT success | None |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}';
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
};
const headers = {
'Content-Type':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /auth-clients/{id}
Permissions |
---|
NotAllowed |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | number | true | none |
body | body | AuthClientPartial | false | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | AuthClient PATCH success | None |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth-clients/{id}
Permissions |
---|
NotAllowed |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | number | true | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuthClient model instance | AuthClient |
Code samples
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients/{id}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /auth-clients/{id}
Permissions |
---|
NotAllowed |
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | number | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | AuthClient DELETE success | None |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /auth-clients
Permissions |
---|
NotAllowed |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | AuthClientExcluding_id_ | false | none |
Example responses
200 Response
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuthClient model instance | AuthClient |
Code samples
const inputBody = '{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients',
{
method: 'PATCH',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PATCH /auth-clients
Permissions |
---|
NotAllowed |
Body parameter
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
Name | In | Type | Required | Description |
---|---|---|---|---|
where | query | object | false | none |
body | body | AuthClientPartial | false | none |
Example responses
200 Response
{
"count": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | AuthClient PATCH success count | loopback.Count |
Code samples
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('/auth-clients',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /auth-clients
Permissions |
---|
NotAllowed |
Name | In | Type | Required | Description |
---|---|---|---|---|
filter | query | auth_clients.Filter | false | none |
Example responses
200 Response
[
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
]
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Array of AuthClient model instances | Inline |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AuthClient] | false | none | none |
» AuthClient | AuthClient | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | string(date-time)¦null | false | none | none |
»» deletedBy | string¦null | false | none | none |
»» createdOn | string(date-time) | false | none | none |
»» modifiedOn | string(date-time) | false | none | none |
»» id | number | false | none | none |
»» clientId | string | true | none | none |
»» clientSecret | string | true | none | none |
»» secret | string | true | none | none |
»» redirectUrl | string | false | none | none |
»» accessTokenExpiration | number | true | none | none |
»» refreshTokenExpiration | number | true | none | none |
»» authCodeExpiration | number | true | none | none |
Code samples
const inputBody = '{
"refreshToken": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'string'
};
fetch('/keycloak/logout',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"refreshToken": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'string'
};
fetch('/keycloak/logout',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /keycloak/logout
This API will log out the user from application as well as keycloak
Body parameter
{
"refreshToken": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
Authorization | header | string | false | This is the access token which is required to authenticate user. |
body | body | RefreshTokenRequestPartial | false | none |
Example responses
200 Response
{
"success": true
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success Response | SuccessResponse |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const inputBody = '{
"refreshToken": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'string'
};
fetch('/logout',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"refreshToken": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'string'
};
fetch('/logout',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /logout
To logout
Body parameter
{
"refreshToken": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
Authorization | header | string | false | This is the access token which is required to authenticate user. |
body | body | RefreshTokenRequestPartial | false | none |
Example responses
200 Response
{
"success": true
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Success Response | SuccessResponse |
400 | Bad Request | The syntax of the request entity is incorrect. | None |
401 | Unauthorized | Invalid Credentials. | None |
404 | Not Found | The entity requested does not exist. | None |
422 | Unprocessable Entity | The syntax of the request entity is incorrect | None |
Code samples
const headers = {
'Accept':'application/json'
};
fetch('/otp-caches/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/otp-caches/{id}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /otp-caches/{id}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
Example responses
200 Response
{
"otp": "string",
"username": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Otp model instance | Otp |
Code samples
fetch('/otp-caches/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
fetch('/otp-caches/{id}',
{
method: 'DELETE'
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /otp-caches/{id}
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Otp DELETE success | None |
Code samples
const inputBody = '{
"otp": "string",
"username": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/otp-caches',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
const fetch = require('node-fetch');
const inputBody = {
"otp": "string",
"username": "string"
};
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('/otp-caches',
{
method: 'POST',
body: JSON.stringify(inputBody),
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /otp-caches
Body parameter
{
"otp": "string",
"username": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | Otp | false | none |
Example responses
200 Response
{
"otp": "string",
"username": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Otp model instance | Otp |
{
"client_id": "string",
"client_secret": "string",
"username": "string",
"password": "string"
}
LoginRequest
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
client_id | string | true | none | This property is supposed to be a string and is a required field |
client_secret | string | true | none | This property is supposed to be a string and is a required field |
username | string | true | none | This property is supposed to be a string and is a required field |
password | string | true | none | This property is supposed to be a string and is a required field |
{
"accessToken": "string",
"refreshToken": "string",
"expires": 0,
"pubnubToken": "string"
}
TokenResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
accessToken | string | true | none | This property is supposed to be a string and is a required field |
refreshToken | string | true | none | This property is supposed to be a string and is a required field |
expires | number | true | none | none |
pubnubToken | string | false | none | none |
{
"code": "string",
"clientId": "string"
}
AuthTokenRequest
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
code | string | true | none | none |
clientId | string | true | none | none |
null
None
{
"refreshToken": "string"
}
AuthRefreshTokenRequest
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
refreshToken | string | true | none | none |
{
"refreshToken": "string",
"username": "string",
"password": "string",
"oldPassword": "string"
}
ResetPasswordPartial
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
refreshToken | string | false | none | none |
username | string | false | none | This property is supposed to be a string and is a required field |
password | string | false | none | This property is supposed to be a string and is a required field |
oldPassword | string | false | none | This property is supposed to be a string and is a required field |
{
"refreshToken": "string",
"username": "string",
"password": "string",
"oldPassword": "string"
}
ResetPassword
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
refreshToken | string | true | none | none |
username | string | true | none | This property is supposed to be a string and is a required field |
password | string | true | none | This property is supposed to be a string and is a required field |
oldPassword | string | false | none | This property is supposed to be a string and is a required field |
{
"client_id": "string",
"client_secret": "string"
}
ClientAuthRequest
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
client_id | string | true | none | This property is supposed to be a string and is a required field |
client_secret | string | true | none | This property is supposed to be a string and is a required field |
{
"success": true
}
SuccessResponse
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
success | boolean | false | none | none |
{
"refreshToken": "string"
}
RefreshTokenRequestPartial
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
refreshToken | string | false | none | none |
{
"refreshToken": "string"
}
RefreshTokenRequest
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
refreshToken | string | true | none | none |
{
"otp": "string",
"username": "string"
}
Otp
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
otp | string | true | none | none |
username | string | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
AuthClient
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
id | number | false | none | none |
clientId | string | true | none | none |
clientSecret | string | true | none | none |
secret | string | true | none | none |
redirectUrl | string | false | none | none |
accessTokenExpiration | number | true | none | none |
refreshTokenExpiration | number | true | none | none |
authCodeExpiration | number | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
AuthClientExcluding_id_
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
clientId | string | true | none | none |
clientSecret | string | true | none | none |
secret | string | true | none | none |
redirectUrl | string | false | none | none |
accessTokenExpiration | number | true | none | none |
refreshTokenExpiration | number | true | none | none |
authCodeExpiration | number | true | none | none |
{
"deleted": true,
"deletedOn": "2019-08-24T14:15:22Z",
"deletedBy": "string",
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"id": 0,
"clientId": "string",
"clientSecret": "string",
"secret": "string",
"redirectUrl": "string",
"accessTokenExpiration": 0,
"refreshTokenExpiration": 0,
"authCodeExpiration": 0
}
AuthClientPartial
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
deleted | boolean | false | none | none |
deletedOn | string(date-time)¦null | false | none | none |
deletedBy | string¦null | false | none | none |
createdOn | string(date-time) | false | none | none |
modifiedOn | string(date-time) | false | none | none |
id | number | false | none | none |
clientId | string | false | none | none |
clientSecret | string | false | none | none |
secret | string | false | none | none |
redirectUrl | string | false | none | none |
accessTokenExpiration | number | false | none | none |
refreshTokenExpiration | number | false | none | none |
authCodeExpiration | number | false | none | none |
{
"username": "string",
"client_id": "string",
"client_secret": "string"
}
ForgetPasswordDto
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
username | string | true | none | none |
client_id | string | true | none | none |
client_secret | string | true | none | none |
{
"token": "string",
"password": "string",
"client_id": "string",
"client_secret": "string"
}
ResetPasswordWithClient
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
token | string | true | none | none |
password | string | true | none | none |
client_id | string | true | none | none |
client_secret | string | true | none | none |
{
"email": "string",
"data": {}
}
SignupRequestDto
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
data | object | false | none | none |
{
"email": "string",
"password": "string"
}
LocalUserProfileDto
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
password | string | true | none | none |
{
"email": "string",
"expiry": "string"
}
SignupRequest
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
string | true | none | none | |
expiry | string | false | none | none |
{
"count": 0
}
loopback.Count
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
count | number | false | none | none |
{
"offset": 0,
"limit": 100,
"skip": 0,
"order": "string",
"where": {},
"fields": {
"deleted": true,
"deletedOn": true,
"deletedBy": true,
"createdOn": true,
"modifiedOn": true,
"id": true,
"clientId": true,
"clientSecret": true,
"secret": true,
"redirectUrl": true,
"accessTokenExpiration": true,
"refreshTokenExpiration": true,
"authCodeExpiration": true
}
}
auth_clients.Filter
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
offset | integer | false | none | none |
limit | integer | false | none | none |
skip | integer | false | none | none |
order | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | string | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |
continued
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
where | object | false | none | none |
fields | any | false | none | none |
oneOf
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | object | false | none | none |
»» deleted | boolean | false | none | none |
»» deletedOn | boolean | false | none | none |
»» deletedBy | boolean | false | none | none |
»» createdOn | boolean | false | none | none |
»» modifiedOn | boolean | false | none | none |
»» id | boolean | false | none | none |
»» clientId | boolean | false | none | none |
»» clientSecret | boolean | false | none | none |
»» secret | boolean | false | none | none |
»» redirectUrl | boolean | false | none | none |
»» accessTokenExpiration | boolean | false | none | none |
»» refreshTokenExpiration | boolean | false | none | none |
»» authCodeExpiration | boolean | false | none | none |
xor
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
» anonymous | [string] | false | none | none |