# Disallowed\_useragent Native iOS OAuth

**URL:** <https://community.auth0.com/t/disallowed-useragent-native-ios-oauth/6887>\
**Category:** Get Help\
**Tags:** disallowed\_useragent\
**Created:** [June 3, 2017, 12:42am UTC](https://community.auth0.com/t/disallowed-useragent-native-ios-oauth/6887 "2017-06-03T00:42:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![d509775](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@d509775](https://community.auth0.com/u/d509775)\
**Post date:** [June 3, 2017, 12:42am UTC](https://community.auth0.com/t/disallowed-useragent-native-ios-oauth/6887/1 "2017-06-03T00:42:58Z")

</div>

With the rollout of Google’s user agent restrictions, I know this question has been asked in other contexts already, but:

Does **Auth0 Lock for iOS** (Swift) have a solution for this Google OAuth login problem?

Does this solution use **Swift 2.3** /Swift 2.x? I haven’t migrated my native iOS app to Swift 3 and would like to use legacy Swift 2.3 libraries for the time being.

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 13, 2018, 6:02pm UTC](https://community.auth0.com/t/disallowed-useragent-native-ios-oauth/6887/2 "2018-02-13T18:02:16Z")

</div>

This issue is caused by Google [blocking authentication from embedded browsers](https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html), such as webviews. It will work if the google login page opens in the mobile browser. If you try the latest version of [Lock.swift](https://github.com/auth0/Lock.swift) you should not run into this issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/disallowed-useragent-native-ios-oauth/6887/3 "2018-03-02T05:54:21Z")

</div>


