OpenClemson / SwiftECP

A simple Shibboleth ECP client for iOS.
Other
17 stars 3 forks source link

Passing logger to request functions doesn't work with examples #10

Closed nawatts closed 8 years ago

nawatts commented 8 years ago

self in the closures in login is nil. The ECP client is a variable within the viewDidLoad method of the example's view controller, so it falls out of scope after login is called and before the request callbacks run. If client is a property of the view controller and thus kept around for the view controller's lifetime it works.

Since there's only one method on the class, maybe dispose of the class altogether and just make it a function?

nawatts commented 8 years ago

Closed by 7200438b356c8b828f4d8e6c60d32928357fe2a2.