public class AuthenticationClient extends BaseClient
| 构造器和说明 |
|---|
AuthenticationClient(AuthenticationClientOptions options) |
deserialize, request, serializepublic AuthenticationClient(AuthenticationClientOptions options) throws IOException, ParseException
public void setAccessToken(String accessToken)
public AccessToken introspectAccessTokenOffline(String token) throws Exception
Exceptionpublic OIDCTokenResponse getAccessTokenByCode(String code) throws Exception
Exceptionpublic ValidateTicketV1Response validateTicketV1(String ticket, String service)
public String validateTicketV2(String ticket, String service, String format) throws Exception
Exceptionpublic String getCodeChallengeDigest(CodeChallengeDigestParam options) throws Exception
Exceptionpublic String buildLogoutUrl(BuildLogoutUrlParams params) throws Exception
params - Exceptionpublic GetAccessTokenByClientCredentialsRespDto getAccessTokenByClientCredentials(String scope, ClientCredentialInput options) throws Exception
Exceptionpublic UserInfo getUserInfoByAccessToken(String accessToken)
public Map<String,Object> getUserInfoMapByAccessToken(String accessToken)
public String buildAuthorizeUrl(IOidcParams params)
public GetNewAccessTokenByRefreshTokenRespDto getNewAccessTokenByRefreshToken(String refreshToken)
public IntrospectTokenRespDto introspectToken(String token)
public ValidateTokenRespDto validateToken(ValidateTokenParams params)
public boolean revokeToken(String token)
public LoginTokenRespDto signInByUsernamePassword(String username, String password, SignInOptionsDto options)
username - 用户名password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByEmailPassword(String email, String password, SignInOptionsDto options)
email - 邮箱password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByPhonePassword(String phone, String password, SignInOptionsDto options)
phone - 手机号password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByAccountPassword(String acconnt, String password, SignInOptionsDto options)
acconnt - 账号(手机号/邮箱/用户名)password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByPhonePassCode(String phone, String passCode, String phoneCountryCode, SignInOptionsDto options)
phone - 手机号phoneCountryCode - 手机区号passCode - 验证码options - 认证可选参数public LoginTokenRespDto signInByEmailPassCode(String email, String passCode, SignInOptionsDto options)
email - 邮箱passCode - 验证码options - 认证可选参数public LoginTokenRespDto signInByLDAP(String sAMAccountName, String password, SignInOptionsDto options)
sAMAccountName - LDAP 用户目录中账号的 sAMAccountNamepassword - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public LoginTokenRespDto signInByAD(String sAMAccountName, String password, SignInOptionsDto options)
sAMAccountName - LDAP 用户目录中账号的 sAMAccountNamepassword - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。options - 认证可选参数public UserSingleRespDto signUpByUsernamePassword(String username, String password, SignUpProfileDto profile, SignUpOptionsDto options)
username - 用户名password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUpByEmailPassword(String email, String password, SignUpProfileDto profile, SignUpOptionsDto options)
email - 邮箱password - 用户密码,默认不加密。Authing 所有 API 均通过 HTTPS 协议对密码进行安全传输,可以在一定程度上保证安全性。如果你还需要更高级别的安全性,我们还支持 `RSA256` 和国密 `SM2` 的密码加密方式。详情见可选参数 `options.passwordEncryptType`。profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUpByEmailPassCode(String email, String passCode, SignUpProfileDto profile, SignUpOptionsDto options)
email - 邮箱passCode - 验证码profile - 注册时额外设置的用户资料,可选options - 注册可选参数public UserSingleRespDto signUpByPhonePassCode(String phone, String passCode, String phoneCountryCode, SignUpProfileDto profile, SignUpOptionsDto options)
phone - 手机号phoneCountryCode - 手机区号passCode - 验证码profile - 注册时额外设置的用户资料,可选options - 注册可选参数public LoginTokenRespDto signInByCredentials(SigninByCredentialsDto reqDto)
public LoginTokenRespDto signInByMobile(SigninByMobileDto reqDto)
public GetAlipayAuthInfoRespDto getAlipayAuthInfo(GetAlipayAuthinfoDto reqDto)
public GeneQRCodeRespDto geneQrCode(GenerateQrcodeDto reqDto)
public CheckQRCodeStatusRespDto checkQrCodeStatus(CheckQrcodeStatusDto reqDto)
public LoginTokenRespDto exchangeTokenSetWithQrCodeTicket(ExchangeTokenSetWithQRcodeTicketDto reqDto)
public CommonResponseDto changeQrCodeStatus(ChangeQRCodeStatusDto reqDto)
public SendSMSRespDto sendSms(SendSMSDto reqDto)
public SendEmailRespDto sendEmail(SendEmailDto reqDto)
public UserSingleRespDto getProfile(GetProfileDto reqDto)
public UserSingleRespDto updateProfile(UpdateUserProfileDto reqDto)
public CommonResponseDto bindEmail(BindEmailDto reqDto)
public CommonResponseDto unbindEmail(UnbindEmailDto reqDto)
public CommonResponseDto bindPhone(BindPhoneDto reqDto)
public CommonResponseDto unbindPhone(UnbindPhoneDto reqDto)
public GetSecurityInfoRespDto getSecurityLevel()
public CommonResponseDto updatePassword(UpdatePasswordDto reqDto)
public VerifyUpdateEmailRequestRespDto verifyUpdateEmailRequest(VerifyUpdateEmailRequestDto reqDto)
public CommonResponseDto updateEmail(UpdateEmailDto reqDto)
public VerifyUpdatePhoneRequestRespDto verifyUpdatePhoneRequest(VerifyUpdatePhoneRequestDto reqDto)
public CommonResponseDto updatePhone(UpdatePhoneDto reqDto)
public PasswordResetVerifyResp verifyResetPasswordRequest(VerifyResetPasswordRequestDto reqDto)
public IsSuccessRespDto resetPassword(ResetPasswordDto reqDto)
public VerifyDeleteAccountRequestRespDto verifyDeleteAccountRequest(VerifyDeleteAccountRequestDto reqDto)
public IsSuccessRespDto deleteAccount(DeleteAccounDto reqDto)
public SystemInfoResp getSystemInfo()
public GetCountryListRespDto getCountryList()
public PreCheckCodeRespDto preCheckCode(PreCheckCodeDto reqDto)
public SendEnrollFactorRequestRespDto sendEnrollFactorRequest(SendEnrollFactorRequestDto reqDto)
public EnrollFactorRespDto enrollFactor(EnrollFactorDto reqDto)
public ResetFactorRespDto resetFactor(ResetFactorDto reqDto)
public ListEnrolledFactorsRespDto listEnrolledFactors()
public GetFactorRespDto getFactor(GetFactorDto reqDto)
public ListFactorsToEnrollRespDto listFactorsToEnroll()
public GenerateBindExtIdpLinkRespDto generateLinkExtIdpUrl(GenerateLinkExtidpUrlDto reqDto)
public CommonResponseDto unlinkExtIdp(UnlinkExtIdpDto reqDto)
public GetIdentitiesRespDto getIdentities()
public GetExtIdpsRespDto getApplicationEnabledExtIdps()
public UserSingleRespDto signUp(SignUpDto reqDto)
public DecryptWechatMiniProgramDataRespDto decryptWechatMiniProgramData(DecryptWechatMiniProgramDataDto reqDto)
public GetWechatAccessTokenRespDto getWechatMpAccessToken(GetWechatAccessTokenDto reqDto)
public GetLoginHistoryRespDto getLoginHistory(GetMyLoginHistoryDto reqDto)
public GetLoggedInAppsRespDto getLoggedInApps()
public GetAccessibleAppsRespDto getAccessibleApps()
public GetTenantListRespDto getTenantList()
public RoleListRespDto getRoleList(GetMyRoleListDto reqDto)
public GroupListRespDto getGroupList()
public UserDepartmentPaginatedRespDto getDepartmentList(GetMyDepartmentListDto reqDto)
public AuthorizedResourcePaginatedRespDto getAuthorizedResources(GetMyAuthorizedResourcesDto reqDto)
Copyright © 2022. All rights reserved.