# Okta-react integration in AWS S3 bucket

**URL:** <https://devforum.okta.com/t/okta-react-integration-in-aws-s3-bucket/14985>\
**Category:** Questions\
**Created:** [July 2, 2021, 6:41am UTC](https://devforum.okta.com/t/okta-react-integration-in-aws-s3-bucket/14985 "2021-07-02T06:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arijeet2514](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Arijeet2514](https://devforum.okta.com/u/Arijeet2514)\
**Post date:** [July 2, 2021, 6:41am UTC](https://devforum.okta.com/t/okta-react-integration-in-aws-s3-bucket/14985/1 "2021-07-02T06:41:32Z")

</div>

Okta works fine in development side but when I deploy my react app in AWS S3 bucket and try static hosting, it is getting redirected to okta sign in page but after that it is returning a url “https://…/index.html/login/callback?code=…&state=…” which is not recognized by S3 bucket.  
I am using okta react version 4.1.0.

I am getting the following error in S3 bucket-

```auto
<Error>

<Code>NoSuchKey</Code>

<Message>The specified key does not exist.</Message>

<Key>index.html/login/callback</Key>

<RequestId>...</RequestId>

<HostId>...</HostId>

</Error>

```

I am getting the following error in the console-  
Failed to load resource: the server responded with a status of 404 (Not Found)

Can anyone guide me through the steps of integrating Okta in a deployed react app in S3 bucket static hosting?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 6:37pm UTC](https://devforum.okta.com/t/okta-react-integration-in-aws-s3-bucket/14985/2 "2024-02-08T18:37:39Z")

</div>

Closed on February 8, 2024, 6:37pm UTC


