Skip to content

Feature/dpcops 8952 - #51

Open
zipkid wants to merge 5 commits into
masterfrom
feature/DPCOPS-8952
Open

Feature/dpcops 8952#51
zipkid wants to merge 5 commits into
masterfrom
feature/DPCOPS-8952

Conversation

@zipkid

@zipkid zipkid commented Sep 10, 2026

Copy link
Copy Markdown
Member

Ruff Linting

Comment thread src/authenticate.py
auth=requests.auth.HTTPBasicAuth(client_id, client_secret),
)
except requests.exceptions.ConnectionError as e:
logger.exception({"message": "Connection error to Cognito", "exception": e})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is het de bedoeling om dit stukje logging te verliezen? Ik zie dezelfde change op nog plaatsen

Comment thread src/authorize.py
logger.error(f"{redirect_uri} is not an allowed domain")
return bad_request('', f"{redirect_uri} is not an allowed domain")

if 'domains' in refresh_token: # delegated token with domain restrictions

@nielslaukens nielslaukens Sep 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik weet dat RUFF nogal opinionated is, maar ik vind de twee if-statements duidelijker dan de gecombineerde. De comment vond ik ook beter staan na de if condition: # then we are in this case

Comment thread src/batch_authorize.py
except InternalServerError as e:
return internal_server_error('', e)

if 'domains' in refresh_token: # delegated token with domain restrictions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dit vind het origineel hier ook duidelijker dan de ruff-versie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants