Skip to content

Migrate pertinent parts of mozilla-django-oidc into api repo #892

@lbeaufort

Description

@lbeaufort

Business Reason

As a developer, we currently maintain a customized fork of the mozilla OIDC package which can poses maintenance challenges with syncing with upstream changes and managing versions used within the fecfile-web-api repository. In addition, the FECFile Online API only uses a subset of the code in the OIDC fork further complicating maintenance.

Task: To pull the parts of the OIDC code that is used by the FECFile Online API into the fecfile-web-api repository. The migrated code will need to be credited to the original authors and repository. The migrated code should be isolated in its own code space within the fecfile-web-api code base so that it can be easily identified and integrated into the main API application.

Dev notes

https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html?highlight=create_user#changing-how-django-users-are-created

https://mozilla-django-oidc.readthedocs.io/en/stable/installation.html#connecting-oidc-user-identities-to-django-users

  • Please update the cryptography version in the api requirements.txt. The current value had to match the version in the Mozilla package to avoid conflicts.

Deploy notes:

On deploy to each environment, in the login dot gov dashboard edit the following “redirect URIs” and change /api/v1/auth/logout-redirect to /api/v1/oidc/logout-redirect and /oidc/callback/ to /api/v1/oidc/callback (note the trailing slash removal)

  • DEV
  • [] STAGE
  • [] PROD

QA Notes

Ticket passes if users are able to log into DEV using Login.gov

DEV Notes

null

Design

null

See full ticket and images here: FECFILE-1396

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions