How to implementing custom identity authorization with AWS Amplify (Flutter or JS)

0

In the iOS AWSCore/AWSCognito library one can authorize bespoke third party auth systems into an AWS identity pool roughly as follows:

let myIdProvider = MyCustomIdProvider()
let credentialsProvider = AWSCognitoCredentialsProvider(regionType: AWSRegionType.USWest2, identityProvider: myIdProvider)
let configuration = AWSServiceConfiguration(region: AWSRegionType.USWest2, credentialsProvider:credentialsProvider)!
// which is then used for things like S3 access...

// The custom provider class...
class MyCustomIdProvider : AWSCognitoCredentialsProviderHelper {
   override func token() -> AWSTask<NSString> {
       // Do the verification here
   }
}

I want to move this code to a cross platform solution (in Dart/Flutter ideally but happy with a JS solution for now). How can I accomplish that in Amplify?

1개 답변
0

You can use Amazon Cognito to authorize with 3rd Party application using AWS Amplify. If you are using React Web Framework in Amplify refer to this BlogPost here that walks you through the steps required to integrate with Okta. Hope this gives you the required ideas.

AWS
전문가
Parnab
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠