# Self Hosted Sign Widget PIV

**URL:** <https://devforum.okta.com/t/self-hosted-sign-widget-piv/11056>\
**Category:** Questions\
**Created:** [September 23, 2020, 9:03pm UTC](https://devforum.okta.com/t/self-hosted-sign-widget-piv/11056 "2020-09-23T21:03:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![anthony.sessa](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/anthony.sessa/32/3319_2.png) [@anthony.sessa](https://devforum.okta.com/u/anthony.sessa)\
**Post date:** [September 10, 2021, 2:25pm UTC](https://devforum.okta.com/t/self-hosted-sign-widget-piv/11056/5 "2021-09-10T14:25:26Z")

</div>

@phi1ipp – I have dug and dug about how to do a correct redirect with PIV sign-in widget implementation to no avail

@danatgovini – were you able to figure this out?

Here is a link to topic I just posted.

> [@Sign in Widget PIV redirecting only to okta homepage](https://devforum.okta.com/t/sign-in-widget-piv-redirecting-only-to-okta-homepage/16052):
>
> Background info We are using PIV card IDP with the piv configuration options. We are able to successfully sign in using the PIV Card, but it always is redirecting to the /app/UserHome Expected behavior Should redirect back to web application ([http://localhost:3000/login/callback](http://localhost:3000/login/callback)) Steps to reproduce const widgetRef = useRef(); useEffect(() =\> { if (!widgetRef.current) { return false; } console.log(config.oidc.redirectUri); const { issuer, clientId, scopes } = config.oidc; con…

---

_[View the full topic](https://devforum.okta.com/t/self-hosted-sign-widget-piv/11056)._
