@@ -902,7 +902,12 @@ def get_permissions(
902902
903903 return list (set (permissions ))
904904
905- def uma_permissions (self , token : str , permissions : str = "" , ** extra_payload : Any ) -> list : # noqa: ANN401
905+ def uma_permissions (
906+ self ,
907+ token : str ,
908+ permissions : str | list | dict | tuple | set = "" ,
909+ ** extra_payload : Any , # noqa: ANN401
910+ ) -> list :
906911 """
907912 Get UMA permissions by user token with requested permissions.
908913
@@ -956,7 +961,9 @@ def uma_permissions(self, token: str, permissions: str = "", **extra_payload: An
956961
957962 return res
958963
959- def has_uma_access (self , token : str , permissions : str ) -> AuthStatus :
964+ def has_uma_access (
965+ self , token : str , permissions : str | list | dict | tuple | set
966+ ) -> AuthStatus :
960967 """
961968 Determine whether user has uma permissions with specified user token.
962969
@@ -1762,7 +1769,7 @@ async def a_get_permissions(
17621769 async def a_uma_permissions (
17631770 self ,
17641771 token : str ,
1765- permissions : str = "" ,
1772+ permissions : str | list | dict | tuple | set = "" ,
17661773 ** extra_payload : Any , # noqa: ANN401
17671774 ) -> list :
17681775 """
@@ -1818,7 +1825,9 @@ async def a_uma_permissions(
18181825
18191826 return res
18201827
1821- async def a_has_uma_access (self , token : str , permissions : str ) -> AuthStatus :
1828+ async def a_has_uma_access (
1829+ self , token : str , permissions : str | list | dict | tuple | set
1830+ ) -> AuthStatus :
18221831 """
18231832 Determine whether user has uma permissions with specified user token asynchronously.
18241833
0 commit comments