Skip to content

reverted removal of token API, unnecessary redirection #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 82 additions & 11 deletions api-references/data/account-aggregator.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,54 @@
}
],
"paths": {
"/users/login": {
"servers": [
{
"url": "https://orgservice-prod.setu.co/v1"
}
],
"post": {
"parameters": [
{
"in": "header",
"name": "client",
"required": true,
"description": "",
"schema": {
"type": "string",
"enum": ["bridge"]
}
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TokenAPIResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BAD_REQUEST"
}
},
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TokenAPIRequest"
}
}
}
},
"summary": "Get Token",
"operationId": "getToken"
}
},
"/v2/fips": {
"get": {
"parameters": [
Expand Down Expand Up @@ -107,18 +155,9 @@
"parameters": [
{
"in": "header",
"name": "x-client_id",
"required": true,
"description": "Client ID for authentication",
"schema": {
"type": "string"
}
},
{
"in": "header",
"name": "x-client-secret",
"name": "Authorization",
"required": true,
"description": "Client secret for authentication",
"description": "Authorization Bearer token",
"schema": {
"type": "string"
}
Expand Down Expand Up @@ -719,6 +758,38 @@
},
"components": {
"schemas": {
"TokenAPIResponse": {
"type": "object",
"properties": {
"access_token": {
"type": "string",
"description": "Bearer token"
},
"refresh_token": {
"type": "string",
"description": "Bearer token"
}
},
"required": ["access_token"]
},
"TokenAPIRequest": {
"type": "object",
"properties": {
"clientID": {
"type": "string",
"description": "client_id obtained from bridge"
},
"grant_type": {
"type": "string",
"enum": ["client_credentials"]
},
"secret": {
"type": "string",
"description": "client secret obtained from bridge"
}
},
"required": ["clientID", "grant_type", "secret"]
},
"DataRefreshSuccessResponse": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The Account Availability Check API enables Financial Information Users (FIUs) to

### Authentication

FIUs must use [Auth Mechanism](/data/account-aggregator/api-reference#/operation~getToken) to obtain an access token for authentication. Include the access token in the Authorization header of some requests.
FIUs must use [Auth Mechanism](/data/account-aggregator/api-reference#/operation~getToken) to obtain an access token for authentication. Include the access token in the Authorization header of each request.

<hr class="primary" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ This API retrieves the last data fetch status for a given consent ID. It provide
},
{
key: "4",
label: <Badge type="failure">FAIL - No Date Sessions Fetched yet</Badge>,
label: <Badge type="failure">FAIL - No Data Sessions Fetched yet</Badge>,
content: (
<>
<h5>Response</h5>
Expand Down