auth0 / Lock.swift

A Swift & iOS framework to authenticate using Auth0 and with a Native Look & Feel
https://auth0.com/lock
MIT License
260 stars 108 forks source link

Add support for logging in from an iOS extension #383

Closed dionc closed 7 years ago

dionc commented 7 years ago

A common requirement for an iOS Share extension is that the user needs to be logged in in order to share files. I would like to use Auth0 to log in from my Share extension but it is currently not supported.

I found the following two issues, there may also be others:

  1. A0Alert uses UIAlertView. This is deprecated and is not supported for extensions.
  2. A0ModalPresenter uses sharedApplication. This is not supported in extensions.
nicoduj commented 7 years ago

Hi, I had the same issue / problem. What I did was to integrate only 'Lock/Core' in my target extension (through cocoapods), and I built my own login UI. couldn't find any other way.

dionc commented 7 years ago

Thanks for the tip!

hzalaz commented 7 years ago

Lock v1 was not meant to be used from an extension, if you can try Auth0.swift for this and if its not possible please submit an issue and we'll fix it