cely-tools / cely Goto Github PK
View Code? Open in Web Editor NEWPlug-n-Play login system for iOS written in Swift
License: MIT License
Plug-n-Play login system for iOS written in Swift
License: MIT License
Do we have a way to use Cley with RxSwift?
Hi folks, running Cely, I get the following error on iOS 12:
error: The operation couldn’t be completed. (Cely.LocksmithError error 7.)
Im following the same example as in the docs, and im not sure what the issues is.
I want to tell the user name or password is wrong when there is something wrong with the user's input by update login view
Hi,
When trying to update by :
carthage update
with
github "Cely/Cely" ~> 2.0.0
in Cartfile
I got this response :
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/Cely/Cely.git /Users/xxx/Library/Caches/org.carthage.CarthageKit/dependencies/Cely) failed with exit code 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
This works only with repo :
github "chaione/Cely" ~> 2.0.0
Hi,
thanks for this library! Do you have any plan to implement a signup flow as well, i.e. with a separate screen and a callback similar to loginCompletionBlock
?
Does Cely Support JWT?
How should I do dependency injection?
Suppose I need to access an external service inside my login viewcontroller (the initial viewcontroller for loginStoryboard). The service is defined as a protocol.
I could use an implicitly unwrapped optional, but how could I set it?
Thank you, Luca-
There is no place to download the .framework flie to include in my project
I am trying out Cely in a small app that I am building, but I am not using Storyboards. I use the 'old' way, of just instantiating a UIViewController
and assigning it to my UIWindow
.
AppDelegate.swift
self.window = UIWindow()
self.window?.rootViewController = MainViewController()
self.window?.makeKeyAndVisible()
After this I setup Cely:
Cely.setup(with: window, forModel: User(), requiredProperties: [.token], withOptions: nil)
But while starting my application it crashes with the following error message:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle
Would using a custom CelyAnimator
solve this (not sure?)
I'm working on Xcode 10.2.1 and after install through CocoaPod and import Cely I got an error Could not build Objective-C module 'Cely'
@initFabian I'd like to get your opinion on how to add the following Expirable protocol so I can manage tokens.
https://github.com/AndrewSB/Expirable
This will enable us see which token expired or is expiring soon. So far following your example I don't know where I am able to enable the Expirable protocol
struct AuthUser: CelyUser {
enum Property: CelyProperty {
case username = "username"
case email = "email"
case access_token = "access_token"
case refresh_token = "refresh_token"
func securely() -> Bool {
switch self {
case .access_token, .refresh_token:
return true
default:
return false
}
}
func persisted() -> Bool {
switch self {
case .access_token, .refresh_token:
return true
default:
return false
}
}
func save(_ value: Any) {
Cely.save(value, forKey: rawValue, securely: securely(), persisted: persisted())
}
func get() -> Any? {
return Cely.get(key: rawValue)
}
}
}
// MARK: - Save/Get User Properties
extension AuthUser {
static func save(_ value: Any, as property: Property) {
property.save(value)
}
static func save(_ data: [Property : Any]) {
data.forEach { property, value in
property.save(value)
}
}
static func get(_ property: Property) -> Any? {
return property.get()
}
}
We have targets for macOS, watchOS, tvOS that don’t build (watchOS doesn’t even make sense 🤪). I’m leaving this here so I can fix/remove as appropriate.
Is there any support for Cocoapods? If not, how can I integrate this to my apps? Thanks!
Hey, man, I need to upgrade one app which uses Cely for login and build in Xcode 9, Can you help me with that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.