Bot releases are hidden (Show)
Published by hzalaz about 8 years ago
Published by hzalaz about 8 years ago
Changed:
Breaking changes:
The function enableLogging()
was removed, so now to enable logging in the library you should enable it per-client instead of globally.
For Auth API
var auth = Auth0.authentication()
auth.logging(enabled: true)
For Users API
var users = Auth0.users(token: "token")
users.logging(enabled: true)
Also now you can provide a custom Logger to replace the default one (which just uses Swift print
). It only needs to implement the protocol Logger
let logger = MyCustomLogger()
var auth = Auth0.authentication()
auth.usingLogger(logger)
Published by hzalaz about 8 years ago
Published by hzalaz about 8 years ago
Published by hzalaz about 8 years ago
Added:
Published by hzalaz over 8 years ago
Changed:
Breaking changes:
The UserProfile
is not named Profile
(in Objective C is A0Profile
).
Published by hzalaz over 8 years ago
Added:
Fixed:
start()
of ConcatRequest
public #31 (pablolvillar)Published by hzalaz over 8 years ago
Added:
/oauth/ro
#28 (hzalaz)Changed:
Breaking changes:
Most of the Authentication API methods first parameters labels are required so for example this call:
Auth0
.login("[email protected]", password: "secret", connection: "connection")
now needs to have the usernameOrEmail
parameter label
Auth0
.login(usernameOrEmail: "[email protected]", password: "secret", connection: "connection")
Now all Result
object return ErrorType
instead of a specific error, this means that OS errors like no network, or connection could not be established are not wrapped in any Auth0 error anymore.
Also the error types that Auth0.swift API clients can return are no longer an enum but a simple object:
AuthenticationError
ManagementError
Each of them has it's own values according at what each api returns when the request fails. Now to handle Auth0.swift errors in your callback, you can do the following:
Auth0
.login(usernameOrEmail: "[email protected]", password: "secret", connection: "connection")
.start { result in
switch result {
case .Success(let credentials):
print(credentials)
case .Failure(let cause as AuthenticationError):
print("Auth0 error was \(cause)")
case .Failure(let cause):
print("Unknown error: \(cause)")
}
}
Also, AuthenticationError
has some helper methods to check for common failures:
Auth0
.login(usernameOrEmail: "[email protected]", password: "secret", connection: "connection")
.start { result in
switch result {
case .Success(let credentials):
print(credentials)
case .Failure(let cause as AuthenticationError) where cause.isMultifactorRequired:
print("Need to ask the user for his mfa code!")
case .Failure(let cause):
print("Login failed with error: \(cause)")
}
}
Published by hzalaz over 8 years ago
Published by hzalaz over 8 years ago
Added:
Changed:
NSURLSession
directlyResult<Payload,ErrorType>
Published by hzalaz about 9 years ago
Published by hzalaz over 9 years ago
Published by hzalaz over 9 years ago
Published by hzalaz over 9 years ago
* This Change Log was automatically generated by github_changelog_generator