Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

23.04 #161

Merged
merged 11 commits into from
May 4, 2023
Merged

23.04 #161

merged 11 commits into from
May 4, 2023

Conversation

HadleyKing
Copy link
Collaborator

No description provided.

HadleyKing and others added 11 commits March 15, 2023 12:38
Changes to be committed:
	modified:   bco_api/api/scripts/utilities/DbUtils.py
	modified:   bco_api/api/views.py
	modified:   bco_api/bco_api/settings.py
	modified:   bco_api/bco_api/urls.py
	new file:   bco_api/search/apis.py
	new file:   bco_api/search/selectors.py
	new file:   bco_api/search/urls.py
* OAuth2 integration start
Changes to be committed:
	modified:   bco_api/api/views.py
	modified:   bco_api/bco_api/settings.py
	modified:   bco_api/bco_api/urls.py
	modified:   requirements.txt

* Major refactor

* ObtainJSONWebToken

* Saving changes
Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_accounts_describe.py
	modified:   api/views.py
	modified:   authentication/services.py
	modified:   bcodb/settings.py
	modified:   requirements.txt

* Enabled OAuth creation of BCO Draft
Changes to be committed:
	modified:   api/scripts/method_specific/POST_api_objects_drafts_create.py
	new file:   authentication/admin.py
	modified:   authentication/apis.py
	new file:   authentication/apps.py
	new file:   authentication/migrations/0001_initial.py
	new file:   authentication/migrations/__init__.py
	modified:   authentication/models.py
	modified:   authentication/selectors.py
	modified:   authentication/services.py
	modified:   bcodb/settings.py

* Cleaning
Changes to be committed:
	modified:   api/model/groups.py
	modified:   authentication/services.py
Changes to be committed:
	renamed:    bco_api/search/apis.py -> search/apis.py
	renamed:    bco_api/search/selectors.py -> search/selectors.py
	renamed:    bco_api/search/urls.py -> search/urls.py
Changes to be committed:
	modified:   api/views.py
	modified:   authentication/apis.py
	modified:   authentication/services.py
	modified:   authentication/urls.py
Changes to be committed:
	modified:   api/views.py
Changes to be committed:
	modified:   api/scripts/method_specific/GET_draft_object_by_id.py
	modified:   authentication/selectors.py
	modified:   authentication/services.py
Changes to be committed:
	modified:   .gitignore
	new file:   sever.conf.example
Changes to be committed:
	modified:   authentication/selectors.py
	modified:   authentication/services.py
	modified:   search/apis.py
	modified:   search/selectors.py
Changes to be committed:
	modified:   api/scripts/method_specific/GET_draft_object_by_id.py
	modified:   api/scripts/utilities/UserUtils.py
	modified:   api/tests/test_group_post_api.py
	modified:   api/tests/test_model_user.py
	modified:   authentication/services.py
	modified:   search/apis.py
	modified:   search/selectors.py
	modified:   search/apis.py
Changes to be committed:
	modified:   search/selectors.py
@gitguardian
Copy link

gitguardian bot commented May 4, 2023

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id Secret Commit Filename
4444564 Generic High Entropy Secret fb3018d authentication/services.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@HadleyKing HadleyKing merged commit 03e7f67 into main May 4, 2023
@HadleyKing HadleyKing deleted the 23.04 branch May 4, 2023 15:36
return Response(status=status.HTTP_201_CREATED, data={"message": "Authentication object added to account"})

except Exception as err:
return Response(status=status.HTTP_400_BAD_REQUEST, data={"message": err})

Check warning

Code scanning / CodeQL

Information exposure through an exception

[Stack trace information](1) flows to this location and may be exposed to an external user.
try:
unverified_payload = jwt.decode(token, None, False)
except Exception as exp:
raise exceptions.AuthenticationFailed(exp)

Check warning

Code scanning / CodeQL

Information exposure through an exception

[Stack trace information](1) flows to this location and may be exposed to an external user.
jwt.decode(token, key=orcid_key, algorithms=['RS256'], audience=['APP-88DEA42BRILGEHKC', 'APP-ZQZ0BL62NV9SBWAX'])
except Exception as exp:
print('exp:', exp)
raise exceptions.AuthenticationFailed(exp)

Check warning

Code scanning / CodeQL

Information exposure through an exception

[Stack trace information](1) flows to this location and may be exposed to an external user.
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.

1 participant