awsdocs / aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Apache License 2.0
9.6k stars 5.63k forks source link

Swift - Examples for using identity resolvers #6916

Closed shepazon closed 3 weeks ago

shepazon commented 1 month ago

Background story

While I'm already working on an example that uses the web identity credential resolver as part of an app example demonstrating use of Sign In With Apple to authenticate with AWS, we need at least one or two other examples. Examples for SSO and an example for access key and secret access key have been specifically requested.

These examples will be embedded (partially) in the content of a chapter in the AWS SDK for Swift Developer Guide.

What does this example accomplish?

  1. Use of SSO to authenticate with AWS
  2. Use of AWS access key and secret access key to authenticate with AWS

This may be one example but is more likely to be two small examples.

Which AWS service(s)?

Cognito, IAM

Which AWS SDKs or tools?

Are there existing code examples to leverage?

Not available yet, but will attach a link to the Sign In With Apple example soon.

Do you have any reference code?

No response

shepazon commented 3 weeks ago

A static credential identity resolver example has been added already. An SSO example is in PR #6995.

shepazon commented 3 weeks ago

The SSO credential identity provider is now live. Documentation update that covers these will be going out soon.