From b7a09444ad8027d967a5693ff0faa53957b20953 Mon Sep 17 00:00:00 2001 From: Daniel Pimenta <105205108+daniel-pimenta-DME@users.noreply.github.com> Date: Mon, 18 Dec 2023 22:24:38 +0000 Subject: [PATCH] Release (#38) * Fix develop dockerfile * Change keycloak urls * Fix develop workflow tag * Fix production workflow * Change log message * Change config * Add health check * Fix health check * Add ready health endpoint * Fix issue * Change workflow filenames * Eoepca 910 um keycloak develop an identity api based on keycloak api (#17) * feat: policies endpoints added, not completely * feat: working on update policies * feat: all remaining added, still policy update not working, create and update scope based permission not working * feat: last resource permissions endpoints added and working * fix: changed pyyaml version from 5.4.1 to 5.3.1 * feat: endpoints changed * Update README * Update config * Update config * Update config * Api testing (#18) * feat: added client_id as param to enpoints and other fixes * added changes for permissions endpoints * Update ci * Update ci * Release v1.0.0 * Fix ci * Fix requirements * Fix ci * Upgrade flask version * Update requirements * feat: added error handling (#23) * feat: added validator of register and protect resource enpoint to test * feat: register and protect resources endpoint working * feat: added delete resources, policies and permissions * Update ci * Update ci * Fix ci * Add options method to endpoints * feat: added endpoint to create client, add resources and protect them if provided * Revert "Add options method to endpoints" This reverts commit 9d8c034a088b92e325f2cfa0b23cc6e754948767. * fea: commit fixes * feat: more fixes, some endpoint were dounbled * fix: last fix * Update ci * fix: policies fix, response now return client id and resources created * feat: create client default to confidential and authorization enabled * Convert to FastAPI * Convert to FastAPI * changes to models * Remove file * Add error handling, pydantic models, files restructuring * Fix issues * Handle keycloak error message * added fildes to models and descriptions * Add authenticated field * Clean and reformat * Point to keycloak client 1.0.0 * Change logging * Fix readme * Clean * Change logging * Clean * merge to develop * added default resource to response list * Create default resource * Fix policies issue * Improvements * Change keycloak client to v1.0.0 * Clarify readme * Add log file * Fix gitignore * Fix dockerfile * Change logging * Change settings to pydantic * Clean and reformat * Update to keycloak client 1.0.1 * Remove log file * Update gitignore * Change default scope * Fix bugs * Bump client version * Fix update resources * Update requirements.txt * Update requirements.txt * Fix bug --------- Co-authored-by: flaviorosadme <82375986+flaviorosadme@users.noreply.github.com> Co-authored-by: flaviorosadme --- app/models/permissions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/permissions.py b/app/models/permissions.py index af8f78f..6594de0 100644 --- a/app/models/permissions.py +++ b/app/models/permissions.py @@ -31,16 +31,12 @@ class AggregatedPermission(APIBaseModel): description: Optional[str] = Field(description="Aggregated Policy description") -class ClientScope(APIBaseModel): - id: str = Field(description="Client scope id") - - class ScopePermission(APIBaseModel): logic: Optional[Logic] = Field(Logic.POSITIVE, description="Logic to apply, either POSITIVE or NEGATIVE") decisionStrategy: Optional[DecisionStrategy] = Field(DecisionStrategy.UNANIMOUS.value, description="Decision strategy to decide how to apply permissions") name: str = Field(description="Scope policy name") - clientScopes: List[ClientScope] = Field(description="Scope policy client scopes") + scopes: List[str] = Field(description="Scope policy client scopes") description: Optional[str] = Field(description="Scope policy description")