Jerzy Ellert

Results 2 comments of Jerzy Ellert

Hi, you can apply a workaround as a patch of `KeycloakUser.__init__` like the following: ``` oryg__init__ = KeycloakUser.__init__ def mocked__init__(*args, **kwargs): kwargs['realmRoles'] = kwargs.get('realmRoles', []) kwargs['attributes'] = kwargs.get('attributes', {}) oryg__init__(*args,...

You can define it in any file like the following function ``` def patcher(): from fastapi_keycloak import KeycloakUser oryg__init__ = KeycloakUser.__init__ def new__init__(*args, **kwargs): kwargs['realmRoles'] = kwargs.get('realmRoles', []) kwargs['attributes'] =...