Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

docs: update postman collection and docs to use Id token #399

Merged
merged 3 commits into from
Aug 11, 2021

Conversation

carvantes
Copy link
Contributor

@carvantes carvantes commented Aug 10, 2021

Description of changes:

Multi-tenancy requires the use of the Cognito IdToken instead of the AccessToken since only the IdToken can have custom claims to store the tenantId.

We updated the default single-tenant deployment to also use the IdToken since maintaining support for both token types adds complexity.

The postman collection was reverted to using the COGNITO_AUTH_TOKEN (which means running a script and copying the token into postman). It was possible to signin to Cognito from postman and get an access token, but postman makes it impossible to use the Id Token that way. See: postmanlabs/postman-app-support#492, postmanlabs/postman-app-support#8231

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@carvantes carvantes changed the title Dev docs idtoken docs: update postman collection and docs to use Id token Aug 10, 2021
@carvantes carvantes marked this pull request as ready for review August 10, 2021 08:14
Copy link
Contributor

@Bingjiling Bingjiling left a comment

Choose a reason for hiding this comment

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

scripts/init-auth.py Show resolved Hide resolved
@carvantes carvantes merged commit a068798 into feat-multitenancy Aug 11, 2021
@carvantes carvantes deleted the dev-docs-idtoken branch August 11, 2021 14:52
carvantes added a commit that referenced this pull request Aug 18, 2021
* feat: add tenantId attribute to Cognito user pool (#348)

* feat: remove unneeded scope checks in authorizer (#347)

* feat: update lambda state machine to accommodate tenantId (#367)

* feat: add "enableMultiTenancy" CFN parameter  (#381)

* test: add multi-tenancy integ tests (#387)

* fix: remove _id, _tenantId from bulk export results (#384)

* feat: Group export scripts (#389)

* fix: add multi-tenant metadata route (#392)

* fix: allow more concurrent export jobs for multi-tenant deployments (#397)

* test: integ tests for Group export (#393)

* feat: add ES hard delete config value (#398)

* docs: update postman collection and docs to use Id token  (#399)

* docs: add multi-tenancy docs (#400)


Co-authored-by: Yanyu Zheng <yz2690@columbia.edu>

BREAKING CHANGE: The Cognito IdToken is now used instead of the accessToken to authorize requests.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants