I am building an application which is driven by a nodejs graphql app.
Within one of the queries, we need to retrieve data from Sharepoint to then resolve as per the schema.
The problem is, the organisations Sharepoint is authenticated with OKTA.
So, the plan is;
Use fixed OKTA credential (retrieved from process.env) to get the necessary access tokens.
Use the tokens communicate with sharepoint api
All this should done in one query flow. Is this possible?