Opened 2 years ago

Closed 2 years ago

#2523 closed enhancement (fixed)

improve checking of user credentials in petascope

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: petascope Version: 9.8
Keywords: Cc:
Complexity: Medium

Description

Instead of executing a full SELECT 1 query, to check credentials petascope just needs to do

RasImplementation impl = new RasImplementation(ConfigManager.RASDAMAN_URL);
impl.setUserIdentification(username, password);

If credentials are invalid it will throw an exception similar to org.odmg.ODMGRuntimeException: The password provided by the client for user 'X' is invalid., otherwise credentials are valid.

Another improvement is to cache the RasImplementation impl objects for each username/password combination, because it's not so cheap to reauthenticate for each query.

Change History (1)

comment:1 by Bang Pham Huu, 2 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.