Skip to content

SAP ID SSO: Gigya SDK build number is retrieved multiple times, not cached #22

@fnschmidt

Description

@fnschmidt

Inside sap_id_sso.py is the following code:

def _get_sdk_build_number(api_key):
global GIGYA_SDK_BUILD_NUMBER
if GIGYA_SDK_BUILD_NUMBER is not None:
return GIGYA_SDK_BUILD_NUMBER

This seems to imply caching, however GIGYA_SDK_BUILD_NUMBER is never assigned to and always remains None.
Is there a reason for this? The only argument in that function is the API key, but as of now, for all three invocations it is the same.

Considering the gigya.js is over 500 KB in size and the regex takes fairly long, caching would make sense.
Perhaps that was the plan all along, but assigning to the global was forgotten?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions