detect authentication method by request (instead of module configuration)

Description

Summary

Change edge-connection to detect the LoginStrategyType based on the 'localUser' value in the request instead of using the configuration value which applies to all tenants.

Details

At this time - the authentication method (either API key or 'tenantid username password' string) has to be configured at the module level impacting all tenants.  The FOLIO instance can only be configured to accept one or the other form of authentication.

I'm planning to submit a PR that does a simple check for a 'space' character in the connexionRequest.getLocalUser() value.  If a 'space' exists - the LoginStrategyType - is changed to full (otherwise - the default value is used - key)

 

Environment

None

Potential Workaround

None

CSP Request Details

None

CSP Rejection Details

None

Checklist

hide

TestRail: Results

Activity

Show:

Details

Assignee

Reporter

Priority

Development Team

None

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 5, 2022 at 7:18 PM
Updated December 5, 2022 at 7:18 PM
TestRail: Cases
TestRail: Runs