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

Added support for cognito standalone maps URLs #48

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

cgalvan
Copy link
Contributor

@cgalvan cgalvan commented Nov 5, 2024

Description

When using an Amazon Cognito Identity Pool ID for authentication with the standalone Maps SDK URL, the signing service name is geo-maps, instead of just geo. Updated the logic to handle this, and also restricted the signing for standalone Maps SDK URLs to only be done when fetching the tiles.

Testing

Updated the unit tests to handle both standalone Maps SDK URLs and consolidated Location SDK URLs. Added checks to verify the signing is working on all the appropriate resources (descriptor, sprites, glyphs, tiles) for the consolidated Location SDK case, and only signing tiles when using a standalone Maps SDK Url. Also added check to verify the credential is using the correct signing service name.

Also tested with local examples to verify it works for both cases.

@cgalvan cgalvan requested a review from a team as a code owner November 5, 2024 16:02
tjmichaels
tjmichaels previously approved these changes Nov 5, 2024
src/cognito/index.ts Outdated Show resolved Hide resolved
mojodna
mojodna previously approved these changes Nov 5, 2024
mbalfour-amzn
mbalfour-amzn previously approved these changes Nov 5, 2024
@cgalvan cgalvan merged commit dd0d53b into aws-geospatial:main Nov 5, 2024
1 check passed
@cgalvan cgalvan deleted the StandaloneMapsCognitoSupport branch November 5, 2024 17:03
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.

4 participants