Documentation
¶
Index ¶
Constants ¶
View Source
const ( HttpMethodGet = "GET" HttpMethodPost = "POST" )
View Source
const ( CoreAuthingDefaultUrl = "https://core.authing.cn" CoreAuthingGraphqlPath = "/graphql/v2" /** * token 过期时间 */ AccessTokenExpiresAt int64 = 0 /** * 应用 Id */ AppId = "" //应用密钥 Secret = "" //应用身份协议 Protocol = "oidc" //获取 token 端点认证方式 TokenEndPointAuthMethod = ClientSecretPost //检查 token 端点认证方式 IntrospectionEndPointAuthMethod = ClientSecretPost //撤回 token 端点认证方式 RevocationEndPointAuthMethod = ClientSecretPost //应用回调地址 RedirectUri = "" //Websocket 服务器域名 WebsocketHost = "" SdkType = "SDK" SdkVersion = "go:2.0.0" // TokenCacheKeyPrefix token缓存key前缀 TokenCacheKeyPrefix = "token_" UserCacheKeyPrefix = "user_" )
View Source
const ( ClientSecretPost = "client_secret_post" ClientSecretBasic = "client_secret_basic" None = "none" )
View Source
const AccessTokenDocument = `` /* 155-byte string literal not displayed */
View Source
const AddAssignmentsDocument = `` /* 377-byte string literal not displayed */
View Source
const AddMembersDocument = `` /* 1467-byte string literal not displayed */
View Source
const AddOrgNodeDocument = `` /* 785-byte string literal not displayed */
View Source
const AddPoliciesDocument = `` /* 377-byte string literal not displayed */
View Source
const AddUserToGroupDocument = `` /* 142-byte string literal not displayed */
View Source
const AddUserToRoleDocument = `` /* 328-byte string literal not displayed */
View Source
const AddWhileListDocument = `` /* 154-byte string literal not displayed */
View Source
const AllowDocument = `` /* 342-byte string literal not displayed */
View Source
const AssignRoleDocument = `` /* 328-byte string literal not displayed */
View Source
const AuthorizeResourceDocument = `` /* 272-byte string literal not displayed */
View Source
const BatchDeletePolicyDocument = `` /* 160-byte string literal not displayed */
View Source
const BatchDeleteRoleDocument = `` /* 154-byte string literal not displayed */
View Source
const BatchDeleteUserDocument = `
mutation deleteUsers($ids: [String!]!) {
deleteUsers(ids: $ids) {
message
code
}
}
`
View Source
const BatchGetRoleUdfValueDocument = `` /* 227-byte string literal not displayed */
View Source
const BatchGetUserDocument = `` /* 886-byte string literal not displayed */
View Source
const BatchGetUserWithCustomDocument = `` /* 973-byte string literal not displayed */
View Source
const BatchSetUdfValueDocument = `` /* 181-byte string literal not displayed */
View Source
const BindEmailDocument = `` /* 752-byte string literal not displayed */
View Source
const BindPhoneDocument = `` /* 754-byte string literal not displayed */
View Source
const CheckLoginStatusDocument = `` /* 185-byte string literal not displayed */
View Source
const CheckPasswordStrengthDocument = `` /* 126-byte string literal not displayed */
View Source
const CreateGroupsDocument = `` /* 215-byte string literal not displayed */
View Source
const CreateOrgDocument = `` /* 576-byte string literal not displayed */
View Source
const CreatePolicyDocument = `` /* 472-byte string literal not displayed */
View Source
const CreateRoleDocument = `` /* 387-byte string literal not displayed */
View Source
const CreateUserDocument = `` /* 980-byte string literal not displayed */
View Source
const CreateUserWithCustomDataDocument = `` /* 917-byte string literal not displayed */
View Source
const DeleteGroupsDocument = `
mutation deleteGroups($codeList: [String!]!) {
deleteGroups(codeList: $codeList) {
message
code
}
}
`
View Source
const DeleteOrgDocument = `
mutation deleteOrg($id: String!) {
deleteOrg(id: $id) {
message
code
}
}
`
View Source
const DeleteOrgNodeDocument = `` /* 132-byte string literal not displayed */
View Source
const DeletePolicyDocument = `` /* 141-byte string literal not displayed */
View Source
const DeleteRoleDocument = `` /* 137-byte string literal not displayed */
View Source
const DeleteUserDocument = `
mutation deleteUser($id: String!) {
deleteUser(id: $id) {
message
code
}
}
`
View Source
const DetailGroupsDocument = `
query group($code: String!) {
group(code: $code) {
code
name
description
createdAt
updatedAt
}
}
`
View Source
const DetailPolicyDocument = `` /* 323-byte string literal not displayed */
View Source
const DisablePolicyAssignmentDocument = `` /* 302-byte string literal not displayed */
View Source
const EnablePolicyAssignmentDocument = `` /* 299-byte string literal not displayed */
View Source
const FindUserDocument = `` /* 892-byte string literal not displayed */
View Source
const FindUserWithCustomDocument = `` /* 922-byte string literal not displayed */
View Source
const GetAuthorizedTargetsCodeDocument = `` /* 419-byte string literal not displayed */
View Source
const GetAuthorizedTargetsDocument = `` /* 411-byte string literal not displayed */
View Source
const GetOrgNodeDocument = `` /* 224-byte string literal not displayed */
View Source
const GetRoleUdfValueDocument = `` /* 163-byte string literal not displayed */
View Source
const GetRootNodeDocument = `` /* 259-byte string literal not displayed */
View Source
const GetUserDepartmentsDocument = `` /* 525-byte string literal not displayed */
View Source
const GetUserGroupsDocument = `` /* 200-byte string literal not displayed */
View Source
const GetUserRolesDocument = `` /* 407-byte string literal not displayed */
View Source
const GroupsDocument = `` /* 266-byte string literal not displayed */
View Source
const IsActionAllowedDocument = `` /* 207-byte string literal not displayed */
View Source
const IsRootNodeDocument = `
query isRootNode($nodeId: String!, $orgId: String!) {
isRootNode(nodeId: $nodeId, orgId: $orgId)
}
`
View Source
const IsUserExistsDocument = `` /* 187-byte string literal not displayed */
View Source
const ListArchivedUsersDocument = `` /* 882-byte string literal not displayed */
View Source
const ListAuthorizedResourcesDocument = `` /* 352-byte string literal not displayed */
View Source
const ListGroupAuthorizedResourcesDocument = `` /* 290-byte string literal not displayed */
View Source
const ListGroupUserDocument = `` /* 1029-byte string literal not displayed */
View Source
const ListGroupUserWithCustomDocument = `` /* 1139-byte string literal not displayed */
View Source
const ListGroupsDocument = `` /* 262-byte string literal not displayed */
View Source
const ListNodeByCodeAuthorizedResourcesDocument = `` /* 332-byte string literal not displayed */
View Source
const ListNodeByIdAuthorizedResourcesDocument = `` /* 291-byte string literal not displayed */
View Source
const ListOrgDocument = `` /* 619-byte string literal not displayed */
View Source
const ListPoliciesDocument = `` /* 392-byte string literal not displayed */
View Source
const ListPolicyDocument = `` /* 398-byte string literal not displayed */
View Source
const ListRoleAuthorizedResourcesDocument = `` /* 288-byte string literal not displayed */
View Source
const ListUdfDocument = `` /* 138-byte string literal not displayed */
View Source
const ListUserAuthorizedResourcesDocument = `` /* 282-byte string literal not displayed */
View Source
const LoginByEmailDocument = `` /* 749-byte string literal not displayed */
View Source
const LoginByPhoneCodeDocument = `` /* 761-byte string literal not displayed */
View Source
const LoginByPhonePasswordDocument = `` /* 773-byte string literal not displayed */
View Source
const LoginBySubAccountDocument = `` /* 884-byte string literal not displayed */
View Source
const LoginByUsernameDocument = `` /* 758-byte string literal not displayed */
View Source
const MoveNodeDocument = `` /* 594-byte string literal not displayed */
View Source
const MoveNodeMembersDocument = `` /* 215-byte string literal not displayed */
View Source
const NodeByIdWithMembersDocument = `` /* 1307-byte string literal not displayed */
View Source
const OrgDocument = `` /* 486-byte string literal not displayed */
View Source
const PolicyAssignmentsDocument = `` /* 392-byte string literal not displayed */
View Source
const PublicKey = "" /* 216-byte string literal not displayed */
View Source
const RefreshUserTokenDocument = `
mutation refreshToken($id: String) {
refreshToken(id: $id) {
token
iat
exp
}
}
`
View Source
const RegisterByEmailDocument = `` /* 751-byte string literal not displayed */
View Source
const RegisterByPhoneCodeDocument = `` /* 763-byte string literal not displayed */
View Source
const RegisterByUsernameDocument = `` /* 760-byte string literal not displayed */
View Source
const RemoveAssignmentsDocument = `` /* 315-byte string literal not displayed */
View Source
const RemoveNodeMembersDocument = `` /* 1393-byte string literal not displayed */
View Source
const RemovePoliciesDocument = `` /* 315-byte string literal not displayed */
View Source
const RemoveUdfDocument = `` /* 143-byte string literal not displayed */
View Source
const RemoveUdfValueDocument = `` /* 204-byte string literal not displayed */
View Source
const RemoveUserInGroupDocument = `` /* 151-byte string literal not displayed */
View Source
const RemoveUserInRoleDocument = `` /* 328-byte string literal not displayed */
View Source
const RemoveWhileListDocument = `` /* 160-byte string literal not displayed */
View Source
const ResetPasswordByForceResetTokenDocument = `` /* 237-byte string literal not displayed */
View Source
const ResetPasswordByTokenDocument = `` /* 178-byte string literal not displayed */
View Source
const ResetPasswordDocument = `` /* 212-byte string literal not displayed */
View Source
const RevokeRoleDocument = `` /* 328-byte string literal not displayed */
View Source
const RoleDetailDocument = `` /* 288-byte string literal not displayed */
View Source
const RoleWithUsersDocument = `` /* 1068-byte string literal not displayed */
View Source
const RolesDocument = `` /* 292-byte string literal not displayed */
View Source
const SearchNodesDocument = `` /* 270-byte string literal not displayed */
View Source
const SearchUserDocument = `` /* 1131-byte string literal not displayed */
View Source
const SearchUserWithCustomDocument = `` /* 1229-byte string literal not displayed */
View Source
const SendFirstLoginVerifyEmailDocument = `` /* 162-byte string literal not displayed */
View Source
const SendMailDocument = `` /* 131-byte string literal not displayed */
View Source
const SetRoleUdfValueDocument = `` /* 236-byte string literal not displayed */
View Source
const SetUdfDocument = `` /* 289-byte string literal not displayed */
View Source
const SetUdvDocument = `` /* 230-byte string literal not displayed */
View Source
const SetUserMainDepartmentDocument = `` /* 166-byte string literal not displayed */
View Source
const StringEmpty = ""
View Source
const UdvDocument = `` /* 163-byte string literal not displayed */
View Source
const UnBindEmailDocument = `` /* 681-byte string literal not displayed */
View Source
const UnBindPhoneDocument = `` /* 682-byte string literal not displayed */
View Source
const UpdateEmailDocument = `` /* 850-byte string literal not displayed */
View Source
const UpdateGroupsDocument = `` /* 251-byte string literal not displayed */
View Source
const UpdateOrgNodeDocument = `` /* 538-byte string literal not displayed */
View Source
const UpdatePasswordDocument = `` /* 787-byte string literal not displayed */
View Source
const UpdatePhoneDocument = `` /* 849-byte string literal not displayed */
View Source
const UpdatePolicyDocument = `` /* 473-byte string literal not displayed */
View Source
const UpdateProfileDocument = `` /* 757-byte string literal not displayed */
View Source
const UpdateRoleDocument = `` /* 390-byte string literal not displayed */
View Source
const UpdateUserDocument = `` /* 757-byte string literal not displayed */
View Source
const UpdateUserPoolDocument = `` /* 1318-byte string literal not displayed */
View Source
const UsersDocument = `` /* 912-byte string literal not displayed */
View Source
const UsersWithCustomDocument = `` /* 1236-byte string literal not displayed */
View Source
const WhileListDocument = `
query whitelist($type: WhitelistType!) {
whitelist(type: $type) {
createdAt
updatedAt
value
}
}
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationDefaultAccessPolicies ¶
type ApplicationDefaultAccessPolicies string
const ( AllowAll ApplicationDefaultAccessPolicies = "ALLOW_ALL" DenyAll ApplicationDefaultAccessPolicies = "DENY_ALL" )
type AuthMethodEnum ¶
type AuthMethodEnum string
type GenerateCodeChallengeMethod ¶
type GenerateCodeChallengeMethod string
const ( PLAIN GenerateCodeChallengeMethod = "plain" S256 GenerateCodeChallengeMethod = "S256" )
type GetAuthorizedTargetsOpt ¶
type GetAuthorizedTargetsOpt string
const ( AND GetAuthorizedTargetsOpt = "AND" OR GetAuthorizedTargetsOpt = "OR" )
type PrincipalAuthenticateType ¶
type PrincipalAuthenticateType string
const ( P PrincipalAuthenticateType = "P" E PrincipalAuthenticateType = "E" )
type ProtocolEnum ¶
type ProtocolEnum string
const ( OAUTH ProtocolEnum = "oauth" OIDC ProtocolEnum = "oidc" CAS ProtocolEnum = "cas" SAML ProtocolEnum = "saml" )
type ProviderTypeEnum ¶
type ProviderTypeEnum string
const ( DingTalk ProviderTypeEnum = "dingtalk" WechatWork ProviderTypeEnum = "wechatwork" AD ProviderTypeEnum = "ad" )
type ResourceTargetTypeEnum ¶
type ResourceTargetTypeEnum string
const ( USER ResourceTargetTypeEnum = "USER" ROLE ResourceTargetTypeEnum = "ROLE" GROUP ResourceTargetTypeEnum = "GROUP" ORG ResourceTargetTypeEnum = "ORG" )
type SocialProviderType ¶
type SocialProviderType string
const ( WECHATPC SocialProviderType = "wechat:pc" GITHUB SocialProviderType = "github" GOOGLE SocialProviderType = "google" QQ SocialProviderType = "qq" APPLE SocialProviderType = "apple" BAIDU SocialProviderType = "baidu" ALIPAY SocialProviderType = "alipay" LARK_APP_STORE SocialProviderType = "lark:app-store" LARK_CUSTOM_APP SocialProviderType = "lark:custom-app" WEIBO SocialProviderType = "weibo" DINGTALK SocialProviderType = "dingtalk" WECHAT_WEB SocialProviderType = "wechat:webpage-authorization" ALIPAY_MOBILE SocialProviderType = "alipay" WECHAT_MQ_DEFAULT SocialProviderType = "wechat:miniprogram:default" WECHAT_MOBILE SocialProviderType = "wechat:mobile" WECHATWORK_SP_AUTHZ SocialProviderType = "wechatwork:service-provider:authorization" WECHATWORK_SP_QR SocialProviderType = "wechatwork:service-provider:qrconnect" WECHATWORK_CORP_QR SocialProviderType = "wechatwork:corp:qrconnect" WECHAT_MP_AL SocialProviderType = "wechat:miniprogram:app-launch" WECHAT_MP_QR SocialProviderType = "wechat:miniprogram:qrconnect" )
type TicketFormat ¶
type TicketFormat string
const ( XML TicketFormat = "XML" JSON TicketFormat = "JSON" )
Click to show internal directories.
Click to hide internal directories.