AuthClient class

Constructors

AuthClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

currentUser User?
getter/setter pair

Static Methods

bindEmail(String email, String passCode) Future<AuthResult>
bind email to current user.
bindPhone(String phoneNumber, String passCode, [String? phoneCountryCode]) Future<AuthResult>
bind phone to current user.
cancelByScannedTicket(String qrcodeId) Future<AuthResult>
Cancel Scan QRCode
createUser(Result result) Future<User?>
delete(String endpoint, [String? body]) Future<Result>
deleteAccountByEmail(String email, String passCode) Future<AuthResult>
reset password by email.
deleteAccountByPassword(String password, [String? passwordEncryptType]) Future<AuthResult>
delete account by password.
deleteAccountByPhone(String phoneNumber, String passCode, [String? phoneCountryCode]) Future<AuthResult>
delete account by phone number and an SMS code.
get(String endpoint) Future<Result>
getAccessibleApps() Future<Result>
get accessible Apps
getAuthorizedResources([String? namespace, String? resourceType]) Future<Result>
get authorized resources
getCurrentUser([bool? customData, bool? identities, bool? departmentIds]) Future<AuthResult>
get current logged in user's profile.
getDepartmentList(int page, int limit, [bool? withCustomData, String? sortBy, String? orderBy]) Future<AuthResult>
get department List
getGroupList() Future<Result>
get group List
getLoggedApps() Future<Result>
get logged Apps
getLoginHistory(int page, int limit, [bool? success, String? start, String? end]) Future<AuthResult>
get login history.
getRoleList([String? namespace]) Future<Result>
list current user's roles
getSecurityInfo() Future<Result>
get Security Info
getSystemConfig() Future<Result>
get system config
getTenantList() Future<Result>
get tenant List
loginByAccount(String account, String password, [LoginOptions? options]) Future<AuthResult>
login by account and password.
loginByEmail(String email, String password, [LoginOptions? options]) Future<AuthResult>
login by email and password.
loginByEmailCode(String email, String passCode, [LoginOptions? options]) Future<AuthResult>
login by email address and a passcode.
loginByOneAuth(String token, String accessToken, String extIdpConnidentifier, [LoginOptions? options]) Future<AuthResult>
login by YiDun.
loginByPhoneCode(String phone, String passCode, [String? phoneCountryCode, LoginOptions? options]) Future<AuthResult>
login by phone number and an SMS verification code.
loginByScannedTicket(String ticket) Future<AuthResult>
Login by QRCode
loginByThirdPart(String code, String connection, String extIdpConnidentifier, [LoginOptions? options]) Future<AuthResult>
login by ThirdPart.
loginByUsername(String username, String password, [LoginOptions? options]) Future<AuthResult>
login by username and a password.
logout() Future<AuthResult>
logout.
markQRCodeScanned(String qrcodeId) Future<AuthResult>
Scan QRCode
mfaBindEmail(String email, String passCode) Future<AuthResult>
mfa bind Email
mfaBindOTP(String passCode) Future<AuthResult>
mfa bind OTP
mfaBindPhone(String phoneNumber, String passCode, [String? phoneCountryCode]) Future<AuthResult>
mfa bind phone
mfaGetEnrolledBindFactor(String factorId) Future<Result>
mfa Get Enrolled Bind Factor
mfaGetEnrolledFactorsList() Future<Result>
mfa Get Enrolled Factors List
mfaGetFactorsListToEnroll() Future<Result>
mfa Get Factors List To Enroll
mfaUnbindFactor(String factorId) Future<Result>
mfa Unbind Factor
parseResponse(dynamic response) Result
post(String endpoint, [String? body]) Future<Result>
registerByEmail(String email, String password, [RegisterOptions? options]) Future<AuthResult>
register a new user by email address and a password.
registerByEmailCode(String email, String passCode, [RegisterOptions? options]) Future<AuthResult>
register a new user by email address and a passcode.
registerByPhoneCode(String phone, String passCode, [String? phoneCountryCode, RegisterOptions? options]) Future<AuthResult>
register a new user by phone number and an SMS verification code.
registerByUsername(String username, String password, [RegisterOptions? options]) Future<AuthResult>
register a new user by username and a password.
request(String method, String uri, [String? body]) Future<Result>
resetPasswordByEmailCode(String email, String passCode, String password, [String? passwordEncryptType]) Future<AuthResult>
reset password by email and an email code.
resetPasswordByPhone(String phoneNumber, String passCode, String password, [String? phoneCountryCode, String? passwordEncryptType]) Future<AuthResult>
reset password by phone number and an SMS code.
sendEmail(String email, String channel) Future<AuthResult>
send an email.
sendSms(String phone, String channel, [String? phoneCountryCode]) Future<AuthResult>
send an SMS code.
unbindEmail() Future<AuthResult>
unbind email to current user.
unbindPhone() Future<AuthResult>
unbind current user's phone number.
updateEmail(String newEmail, String newEmailPassCode, [String? oldEmail, String? oldEmailPassCode]) Future<AuthResult>
update current user's email address.
updatePassword(String newPassword, [String? oldPassword, String? passwordEncryptType]) Future<AuthResult>
update current user's password.
updatePhone(String newPhoneNumber, String newPhonePassCode, [String? oldPhoneNumber, String? oldPhonePassCode, String? newPhoneCountryCode, String? oldPhoneCountryCode]) Future<AuthResult>
2230 same phone number 1320004 phone already bind
updateProfile(Map object) Future<AuthResult>
set user's custom data.

Constants

keyToken → const String