# Okta Redirect Model IOS : avoid alert before loading Okta page

**URL:** <https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086>\
**Category:** Questions\
**Created:** [January 19, 2023, 1:35pm UTC](https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086 "2023-01-19T13:35:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuraphy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@manuraphy](https://devforum.okta.com/u/manuraphy)\
**Post date:** [January 19, 2023, 1:35pm UTC](https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086/1 "2023-01-19T13:35:53Z")

</div>

I have two things that need clarification

1. How can we avoid showing the alert to user every time user calls signin or signout using WebAuthentication ?

2. Can we directly load the Okta page without user interaction similar to we use SAML in webapps ?

---

<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:** [January 19, 2023, 4:32pm UTC](https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086/2 "2023-01-19T16:32:38Z")

</div>

Is this while using our iOS SDK? It sounds like you might be seeing the system prompt that happens when redirected to login via the browser, as discussed in this thread (our SDK uses AppAuth under the hood): [Dialog asking for sign-in permissions · Issue #177 · openid/AppAuth-iOS · GitHub](https://github.com/openid/AppAuth-iOS/issues/177#issuecomment-345875180) and [Logout popup says 'Log in' instead of 'Log out' · Issue #461 · openid/AppAuth-iOS · GitHub](https://github.com/openid/AppAuth-iOS/issues/461#issuecomment-546335861)

---

<div class="post-metadata">

**Author:** ![manuraphy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@manuraphy](https://devforum.okta.com/u/manuraphy)\
**Post date:** [January 20, 2023, 6:25am UTC](https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086/3 "2023-01-20T06:25:02Z")

</div>

Yes . I am using IOS SDK for the Redirect model Login. Just before the webpage get loaded , i am getting this popup that i need to confirm every time .

Is there a way to avoid that. ?

---

<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:** [January 20, 2023, 4:45pm UTC](https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086/4 "2023-01-20T16:45:46Z")

</div>

No, its a system prompt as explained in those threads. You’d have to not use SFAuthenticationSession:

> There isn’t a way to get rid of the dialog, except to not use `SFAuthenticationSession` which means you lose Single SignOn, which is worse.

---

<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 13, 2024, 7:49pm UTC](https://devforum.okta.com/t/okta-redirect-model-ios-avoid-alert-before-loading-okta-page/23086/5 "2024-02-13T19:49:41Z")

</div>

Closed on February 13, 2024, 7:49pm UTC


