Skip to content

Attempt 2 at Auth0#1542

Merged
Bento007 merged 1 commit intomasterfrom
tsmith-oidc
Sep 4, 2018
Merged

Attempt 2 at Auth0#1542
Bento007 merged 1 commit intomasterfrom
tsmith-oidc

Conversation

@Bento007
Copy link
Copy Markdown
Collaborator

I forgot to add the new environment variables to EXPORT_ENV_VARS_TO_LAMBDA_ARRAY >_<

Deployment instructions & migrations

  • dcp/dss/application_secret.json needs to be replaced with the secret from auth0
  • Merge this to dev before merging the Auth0 HCA CLI changes.

Release notes

see commits

Copy link
Copy Markdown
Member

@kislyuk kislyuk left a comment

Choose a reason for hiding this comment

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

Approved with one reservation.

Comment thread dss/error.py Outdated
title,
*args, **kwargs)

def handler_DSSException(e: DSSException) -> FlaskResponse:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would suggest that this be renamed to dss_exception_handler().

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

will fix

Release Notes
* Using auth0 for authentication of user credential and using google service account credential for service to service authentication.
* Add new environment variables
	* TOKEN_INFO_URL is the endpoint to use for token info
	* OPEN_ID_PROVIDER all JWTs must be issued from this provider unless a trust google project is used.
        * Added GROUP_CLAIM to environment
* Added more detail to swagger for authorization claims and scope

Dev Notes
* adding an exceptions handler to flask for DSSExpections so the correct error is returned in the Response. This is because the verification of the JWT occurs before dss_handler is called.
* Added the new security module for verifying JWT
* Added test cases for dss.utils.security
* Add new configuration variables
	* _TRUSTED_GOOGLE_PROJECT lists all of google service credentials that can be used with the DSS, it is derived from _ALLOWED_EMAILS
	* _JWT_AUDIENCE is the audience that must be present in the JWT, it is derived from API_DOMAIN_NAME
* getting audience from an environment variable. Audience is now https://data.humancellatlas.org/ for production and https://dev.data.humancellatlas.org/ for dev, integration, and staging.
@Bento007 Bento007 merged commit 1887742 into master Sep 4, 2018
@Bento007 Bento007 deleted the tsmith-oidc branch September 7, 2018 22:10
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.

2 participants