marcospereirampj / python-keycloak

MIT License
706 stars 296 forks source link

Implement missing admin method create_client_authz_scope_based_permission() and create_client_authz_policy() #460

Closed cainotis closed 1 year ago

cainotis commented 1 year ago

This finishes #383 providing a solution to #370 and allows to create any type of policy

cainotis commented 1 year ago

I believe that something went wrong with the test for Python 3.10 20.0, it didn't pass in the test_token() because the expire time differed by 1. I can't re-run the test without making another commit so I will wait for the reviewers before doing anything unnecessary. Here is the difference appointed by the test: {'refresh_expires_in': 1799} != {'refresh_expires_in': 1800} {'expires_in': 299} != {'expires_in': 300}