Done
Details
Reporter
Brooks TravisBrooks TravisPO Rank
100Rank: 5Colleges (Full Jul 2021)
R5Rank: Cornell (Full Sum 2021)
R5Rank: GBV (MVP Sum 2020)
R5Rank: Grand Valley (Full Sum 2021)
R2Rank: TAMU (MVP Jan 2021)
R5Rank: Chicago (MVP Sum 2020)
R4Rank: MO State (MVP June 2020)
R2Rank: U of AL (MVP Oct 2020)
R5TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Reporter
Brooks Travis
Brooks TravisPO Rank
100
Rank: 5Colleges (Full Jul 2021)
R5
Rank: Cornell (Full Sum 2021)
R5
Rank: GBV (MVP Sum 2020)
R5
Rank: Grand Valley (Full Sum 2021)
R2
Rank: TAMU (MVP Jan 2021)
R5
Rank: Chicago (MVP Sum 2020)
R4
Rank: MO State (MVP June 2020)
R2
Rank: U of AL (MVP Oct 2020)
R5
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created September 21, 2020 at 5:56 PM
Updated March 17, 2022 at 5:02 AM
Resolved September 24, 2021 at 8:41 PM
Current situation or problem:
In order to make D2IR API called to the central INN-Reach server, FOLIO must have a valid Bearer Auth token. These tokens are generated by POSTing a request to a configuration-specified API endpoint using a client key and secret combination. Key and secret should be concatenated together using a ":" and base64 encoded.
Sample request:
Sample Response:
Issued tokens are valid for 600 seconds. Expired tokens result in a 401 Unauthorized response from the server. Client should handle these responses and request a new token when needed.
In scope
API client for requesting OAuth2 Bearer Tokens from Central Server based on supplied Base64-encoded ket/secret pair
Out of scope
API Endpoint to provide OAuth2 Bearer Tokens to a client based on supplied Base64-encoded key/secret pair.
Use case(s)
All API calls from FOLIO to INN-Reach central server require an Oauth2 Bearer Authentication token to be included in the request headers. FOLIO must request a new token before attempting any other API calls.
Proposed solution/stories
Given a known API key/secret combination issued by the INN-Reach Central Server, the edge-inn-reach module should issue a request to the Central Server Oauth2 api to request a valid Bearer Auth token and store it for subsequent use, and request a new token when the previous one expires.
Questions
How do we store the API key/secret pair issues by the D2IR Central Server?
Should a new token be requested for each transaction with the server, or stored and re-used until expiration?