aws-amplify / amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
https://ui.docs.amplify.aws/swift/connected-components/liveness
Apache License 2.0
11 stars 25 forks source link

FR (Docs): [iOS] [Liveness] Clarify how to provide temporary credentials when using a Custom Credentials Provider #160

Open ruisebas opened 4 months ago

ruisebas commented 4 months ago

On which framework/platform would you like to see this feature implemented?

iOS

Which UI component is this feature-request for?

Liveness

Please describe your feature-request in detail.

The Custom Credentials Provider section under the Liveness startup guide has a simple code snippet on how to provide credentials:

struct MyCredentialsProvider: AWSCredentialsProvider {
    func fetchAWSCredentials() async throws -> AWSCredentials { 
        // Fetch the credentials
    }
}

However, if temporary credentials are provided, developers must return an instance of a type conforming to AWSTemporaryCredentials instead, otherwise the service will reject them.

Please describe a solution you'd like.

Just have a callout in this section stating that AWSTemporaryCredentials exists and when it should be used.

We love contributors! Is this something you'd be interested in working on?

github-actions[bot] commented 4 months ago

This issue was opened by a maintainer of this repository; updates will be posted here. If you are also experiencing this issue, please comment here with any relevant information so that we're aware and can prioritize accordingly.

thaddmt commented 4 months ago

Transferring this task to the swift library as it seems specific to the Swift liveness component