iam

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Copyright (c) 2021 AccelByte Inc. All Rights Reserved. This is licensed software from AccelByte Inc, for limitations and restrictions contact your company contract manager.

Copyright (c) 2021 AccelByte Inc. All Rights Reserved. This is licensed software from AccelByte Inc, for limitations and restrictions contact your company contract manager.

Copyright (c) 2021 AccelByte Inc. All Rights Reserved. This is licensed software from AccelByte Inc, for limitations and restrictions contact your company contract manager.

Copyright (c) 2021 AccelByte Inc. All Rights Reserved. This is licensed software from AccelByte Inc, for limitations and restrictions contact your company contract manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BansService

type BansService struct {
	Client          *iamclient.JusticeIamService
	TokenRepository repository.TokenRepository
}

func (*BansService) AdminGetBansTypeV3

func (b *BansService) AdminGetBansTypeV3() (*iamclientmodels.AccountcommonBansV3, error)

func (BansService) AdminGetListBanReasonV3

func (b BansService) AdminGetListBanReasonV3() (*iamclientmodels.AccountcommonBanReasonsV3, error)

type ClientsService

type ClientsService struct {
	Client          *iamclient.JusticeIamService
	TokenRepository repository.TokenRepository
}

func (*ClientsService) AdminAddClientPermissionsV3

func (c *ClientsService) AdminAddClientPermissionsV3(input *clients.AdminAddClientPermissionsV3Params) error

func (*ClientsService) AdminDeleteClientPermissionV3

func (c *ClientsService) AdminDeleteClientPermissionV3(input *clients.AdminDeleteClientPermissionV3Params) error

func (*ClientsService) AdminDeleteClientV3

func (c *ClientsService) AdminDeleteClientV3(input *clients.AdminDeleteClientV3Params) error

func (*ClientsService) AdminUpdateClientPermissionV3

func (c *ClientsService) AdminUpdateClientPermissionV3(input *clients.AdminUpdateClientPermissionV3Params) error

type OAuth20ExtensionService

type OAuth20ExtensionService struct {
	Client           *iamclient.JusticeIamService
	ConfigRepository repository.ConfigRepository
	TokenRepository  repository.TokenRepository
}

func (*OAuth20ExtensionService) GetCountryLocationV3

func (*OAuth20ExtensionService) Logout

func (a *OAuth20ExtensionService) Logout() error

func (*OAuth20ExtensionService) PlatformAuthenticationV3

func (*OAuth20ExtensionService) UserAuthenticationV3

type OAuth20Service

type OAuth20Service struct {
	Client           *iamclient.JusticeIamService
	ConfigRepository repository.ConfigRepository
	TokenRepository  repository.TokenRepository
}

func (*OAuth20Service) AuthCodeRequestV3

func (*OAuth20Service) Authenticate

func (a *OAuth20Service) Authenticate(requestId, username, password string) (string, error)

func (*OAuth20Service) Authorize

func (a *OAuth20Service) Authorize(scope, challenge, challengeMethod string) (string, error)

func (*OAuth20Service) AuthorizeV3

func (a *OAuth20Service) AuthorizeV3(input *o_auth2_0.AuthorizeV3Params) (string, error)

func (*OAuth20Service) GetJWKSV3

func (*OAuth20Service) GetRevocationListV3

func (a *OAuth20Service) GetRevocationListV3() (*iamclientmodels.OauthapiRevocationList, error)

func (*OAuth20Service) GetToken

func (a *OAuth20Service) GetToken() (string, error)

func (*OAuth20Service) GrantTokenAuthorizationCode

func (a *OAuth20Service) GrantTokenAuthorizationCode(code, codeVerifier, redirectUri string) error

func (*OAuth20Service) GrantTokenCredentials

func (a *OAuth20Service) GrantTokenCredentials(code, codeVerifier string) error

func (*OAuth20Service) GrantTokenRefreshToken

func (a *OAuth20Service) GrantTokenRefreshToken(code, codeVerifier, refreshToken string) error

func (*OAuth20Service) Login

func (a *OAuth20Service) Login(username, password string) error

Login is used to login with username and password

func (*OAuth20Service) Logout

func (a *OAuth20Service) Logout() error

Logout is used to logout with client service oauth2 revoke

func (*OAuth20Service) RevokeUserV3

func (a *OAuth20Service) RevokeUserV3(input *o_auth2_0.RevokeUserV3Params) error

func (*OAuth20Service) TokenGrantV3

func (*OAuth20Service) TokenRevocationV3

func (a *OAuth20Service) TokenRevocationV3(token string) error

type RolesService

type RolesService struct {
	Client          *iamclient.JusticeIamService
	TokenRepository repository.TokenRepository
}

func (*RolesService) AdminAddRoleManagersV3

func (r *RolesService) AdminAddRoleManagersV3(input *roles.AdminAddRoleManagersV3Params) error

AdminAddRoleManagersV3 is for admin to add role by role's managers

func (*RolesService) AdminAddRoleMembersV3

func (r *RolesService) AdminAddRoleMembersV3(input *roles.AdminAddRoleMembersV3Params) error

AdminAddRoleMembersV3 is for admin to add role by role's manager listed in members

func (*RolesService) AdminAddRolePermissionsV3

func (r *RolesService) AdminAddRolePermissionsV3(input *roles.AdminAddRolePermissionsV3Params) error

AdminAddRolePermissionsV3 is for admin to add role's permission

func (*RolesService) AdminCreateRoleV3

AdminCreateRoleV3 is for admin to create the roles

func (*RolesService) AdminDeleteRolePermissionV3

func (r *RolesService) AdminDeleteRolePermissionV3(input *roles.AdminDeleteRolePermissionV3Params) error

AdminDeleteRolePermissionV3 is for admin to delete a role's permission

func (*RolesService) AdminDeleteRolePermissionsV3

func (r *RolesService) AdminDeleteRolePermissionsV3(input *roles.AdminDeleteRolePermissionsV3Params) error

AdminDeleteRolePermissionsV3 is for admin to delete role's permissions

func (*RolesService) AdminDeleteRoleV3

func (r *RolesService) AdminDeleteRoleV3(input *roles.AdminDeleteRoleV3Params) error

AdminDeleteRoleV3 is for admin to delete the roles

func (*RolesService) AdminGetRoleAdminStatusV3

AdminGetRoleAdminStatusV3 is for admin to get admin status

func (*RolesService) AdminGetRoleManagers

AdminGetRoleManagers is for admin to get the roles by role's managers

func (*RolesService) AdminGetRoleMembersV3

AdminGetRoleMembersV3 is for admin to get the role members

func (*RolesService) AdminGetRoleV3

AdminGetRoleV3 is for admin to get the roles by roleId

func (*RolesService) AdminGetRolesV3

AdminGetRolesV3 is for admin to get the roles

func (*RolesService) AdminRemoveRoleAdminV3

func (r *RolesService) AdminRemoveRoleAdminV3(input *roles.AdminRemoveRoleAdminV3Params) error

AdminRemoveRoleAdminV3 is for admin to delete role admin status

func (*RolesService) AdminRemoveRoleManagersV3

func (r *RolesService) AdminRemoveRoleManagersV3(input *roles.AdminRemoveRoleManagersV3Params) error

AdminRemoveRoleManagersV3 is for admin to delete assigned role by role's managers

func (*RolesService) AdminRemoveRoleMembersV3

func (r *RolesService) AdminRemoveRoleMembersV3(input *roles.AdminRemoveRoleMembersV3Params) error

AdminRemoveRoleMembersV3 is for admin to delete role by role's manager listed in members

func (*RolesService) AdminUpdateAdminRoleStatusV3

func (r *RolesService) AdminUpdateAdminRoleStatusV3(input *roles.AdminUpdateAdminRoleStatusV3Params) error

AdminUpdateAdminRoleStatusV3 is for admin to update role set as admin

func (*RolesService) AdminUpdateRolePermissionsV3

func (r *RolesService) AdminUpdateRolePermissionsV3(input *roles.AdminUpdateRolePermissionsV3Params) error

AdminUpdateRolePermissionsV3 is for admin to update existing role's permission

func (*RolesService) AdminUpdateRoleV3

AdminUpdateRoleV3 is for admin to update existing role

func (*RolesService) PublicGetRoleV3

PublicGetRoleV3 is for public to get the roles by id

func (*RolesService) PublicGetRolesV3

PublicGetRolesV3 is for public to get the roles

type SSOSAML20Service

type SSOSAML20Service struct {
	Client          *iamclient.JusticeIamService
	TokenRepository repository.TokenRepository
}

func (*SSOSAML20Service) PlatformAuthenticateSAMLV3

PlatformAuthenticateSAMLV3 is used to authenticate user platform for SAML protocol

type SSOService

type SSOService struct {
	Client          *iamclient.JusticeIamService
	TokenRepository repository.TokenRepository
}

func (*SSOService) LoginSSOClient

func (s *SSOService) LoginSSOClient(input *s_s_o.LoginSSOClientParams) error

LoginSSOClient is used to login to SSO client with provided platformId

func (*SSOService) LogoutSSOClient

func (s *SSOService) LogoutSSOClient(input *s_s_o.LogoutSSOClientParams) error

LogoutSSOClient is used to logout user's session on platform that logged in using SSO

type ThirdPartyCredentialService

type ThirdPartyCredentialService struct {
	Client    repository.TokenRepository
	IamClient *iamclient.JusticeIamService
}

func (*ThirdPartyCredentialService) DeleteThirdPartyLoginPlatformCredentialV3

type UsersService

type UsersService struct {
	Client          *iamclient.JusticeIamService
	TokenRepository repository.TokenRepository
}

func (*UsersService) AdminAddUserPermissionsV3

func (u *UsersService) AdminAddUserPermissionsV3(input *users.AdminAddUserPermissionsV3Params) error

AdminAddUserPermissionsV3 is used to add user permissions

func (*UsersService) AdminAddUserRoleV3

func (u *UsersService) AdminAddUserRoleV3(input *users.AdminAddUserRoleV3Params) error

AdminAddUserRoleV3 is used to add user's role

func (*UsersService) AdminBanUserV3

AdminBanUserV3 is used to ban a single user with specific type of ban

func (*UsersService) AdminCreateJusticeUser

AdminCreateJusticeUser is to create platform justice user from publisher user

func (*UsersService) AdminDeleteUserInformationV3

func (u *UsersService) AdminDeleteUserInformationV3(input *users.AdminDeleteUserInformationV3Params) error

AdminDeleteUserInformationV3 is used to delete user's information

func (*UsersService) AdminDeleteUserPermissionBulkV3

func (u *UsersService) AdminDeleteUserPermissionBulkV3(input *users.AdminDeleteUserPermissionBulkV3Params) error

AdminDeleteUserPermissionBulkV3 is used to delete user permission

func (*UsersService) AdminDeleteUserPermissionV3

func (u *UsersService) AdminDeleteUserPermissionV3(input *users.AdminDeleteUserPermissionV3Params) error

AdminDeleteUserPermissionV3 delete user permission action

func (*UsersService) AdminDeleteUserRoleV3

func (u *UsersService) AdminDeleteUserRoleV3(input *users.AdminDeleteUserRoleV3Params) error

AdminDeleteUserRoleV3 is used to delete user's role

func (*UsersService) AdminDeleteUserRolesV3

func (u *UsersService) AdminDeleteUserRolesV3(input *users.AdminDeleteUserRolesV3Params) error

AdminDeleteUserRolesV3 is used to delete user's roles

func (*UsersService) AdminGetAgeRestrictionStatusV3

AdminGetAgeRestrictionStatusV3 is used to get age restriction status

func (*UsersService) AdminGetBulkUserByEmailAddressV3

AdminGetBulkUserByEmailAddressV3 is used to get bulk user by email address

func (*UsersService) AdminGetListCountryAgeRestrictionV3

func (u *UsersService) AdminGetListCountryAgeRestrictionV3(input *users.AdminGetListCountryAgeRestrictionV3Params) ([]*iamclientmodels.ModelCountryV3Response, error)

AdminGetListCountryAgeRestrictionV3 is used to get age restriction country list

func (*UsersService) AdminGetMyUserV3

func (u *UsersService) AdminGetMyUserV3() (*iamclientmodels.ModelUserResponseV3, error)

AdminGetMyUserV3 is used to get user's data

func (*UsersService) AdminGetUserBanV3

AdminGetUserBanV3 is to get the first page of the data if after and before parameters is empty

func (*UsersService) AdminGetUserByEmailAddressV3

AdminGetUserByEmailAddressV3 is used to get users by email

func (*UsersService) AdminGetUserByUserIDV3

AdminGetUserByUserIDV3 is used to get user by userId

func (*UsersService) AdminGetUserDeletionStatusV3

AdminGetUserDeletionStatusV3 is to get user deletion status

func (*UsersService) AdminGetUserLoginHistoriesV3

AdminGetUserLoginHistoriesV3 is used to get user's login histories

func (*UsersService) AdminGetUserPlatformAccountsV3

AdminGetUserPlatformAccountsV3 is used to get platform accounts linked to the user

func (*UsersService) AdminInviteUserV3

AdminInviteUserV3 is used to invite admin user and assign role to them

func (*UsersService) AdminLinkPlatformAccount

func (u *UsersService) AdminLinkPlatformAccount(input *users.AdminLinkPlatformAccountParams) error

AdminLinkPlatformAccount is used to link a platform user account to user account

func (*UsersService) AdminListUsersV3

AdminListUsersV3 is used to get list of users ID and namespace with their Justice platform account, under a namespace

func (*UsersService) AdminPlatformUnlinkV3

func (u *UsersService) AdminPlatformUnlinkV3(input *users.AdminPlatformUnlinkV3Params) error

AdminPlatformUnlinkV3 is used to unlink a platform user account to user account

func (*UsersService) AdminSaveUserRoleV3

func (u *UsersService) AdminSaveUserRoleV3(input *users.AdminSaveUserRoleV3Params) error

AdminSaveUserRoleV3 is used to update user's role

func (*UsersService) AdminSearchUserV3

AdminSearchUserV3 is used to search user

func (*UsersService) AdminSendVerificationCodeV3

func (u *UsersService) AdminSendVerificationCodeV3(input *users.AdminSendVerificationCodeV3Params) error

AdminSendVerificationCodeV3 is used to send verification code to user

func (*UsersService) AdminUpdateAgeRestrictionConfigV3

AdminUpdateAgeRestrictionConfigV3 is used to update age restriction config value

func (*UsersService) AdminUpdateCountryAgeRestrictionV3

AdminUpdateCountryAgeRestrictionV3 is used to get age restriction country list

func (*UsersService) AdminUpdateUserBanV3

AdminUpdateUserBanV3 is used to update enable or disable ban for single user

func (*UsersService) AdminUpdateUserDeletionStatusV3

func (u *UsersService) AdminUpdateUserDeletionStatusV3(input *users.AdminUpdateUserDeletionStatusV3Params) error

AdminUpdateUserDeletionStatusV3 is used to update user deletion status

func (*UsersService) AdminUpdateUserPermissionV3

func (u *UsersService) AdminUpdateUserPermissionV3(input *users.AdminUpdateUserPermissionV3Params) error

AdminUpdateUserPermissionV3 is used to update user permissions

func (*UsersService) AdminUpdateUserStatusV3

func (u *UsersService) AdminUpdateUserStatusV3(input *users.AdminUpdateUserStatusV3Params) error

AdminUpdateUserStatusV3 is used to disable or enable user account

func (*UsersService) AdminUpdateUserV3

AdminUpdateUserV3 is used to update user by userId

func (*UsersService) AdminUpgradeHeadlessAccountV3

AdminUpgradeHeadlessAccountV3 is used to upgrade headless account with verification code

func (*UsersService) AdminVerifyAccountV3

func (u *UsersService) AdminVerifyAccountV3(input *users.AdminVerifyAccountV3Params) error

AdminVerifyAccountV3 is used to verify account by validating verification code

func (*UsersService) AdminVerifyUserWithoutVerificationCodeV3

func (u *UsersService) AdminVerifyUserWithoutVerificationCodeV3(input *users.AdminVerifyUserWithoutVerificationCodeV3Params) error

AdminVerifyUserWithoutVerificationCodeV3 is used to force verify user

func (*UsersService) CreateUserFromInvitationV3

CreateUserFromInvitationV3 is used to create user from saved roles when creating invitation and submitted data

func (*UsersService) GetAdminInvitationV3

GetAdminInvitationV3 is used to validate user admin invitation

func (*UsersService) GetAdminUsersByRoleIDV3

GetAdminUsersByRoleIDV3 is used to get list of admin users which have the roleId

func (*UsersService) GetUserVerificationCodeV3

GetUserVerificationCodeV3 is used to get verification code sent to user. [WARNING] This endpoint is only for testing purpose.

func (*UsersService) ListAdminsV3

ListAdminsV3 is used to get list of admins by admin

func (*UsersService) PublicCreateJusticeUser

PublicCreateJusticeUser is used to create justice user from publisher user

func (*UsersService) PublicCreateUserV3

PublicCreateUserV3 is used to create user. Support accepting agreements for the created user. Supply the accepted agreements in acceptedPolicies attribute.

func (*UsersService) PublicForgotPasswordV3

func (u *UsersService) PublicForgotPasswordV3(input *users.PublicForgotPasswordV3Params) error

PublicForgotPasswordV3 is used to request password reset code

func (*UsersService) PublicGetAsyncStatus

PublicGetAsyncStatus is used to get linking status

func (*UsersService) PublicGetMyUserV3

func (u *UsersService) PublicGetMyUserV3() (*iamclientmodels.ModelUserResponseV3, error)

PublicGetMyUserV3 is used to get my user

func (*UsersService) PublicGetUserBanHistoryV3

PublicGetUserBanHistoryV3 is used to get user s bans

func (*UsersService) PublicGetUserByPlatformUserIDV3

PublicGetUserByPlatformUserIDV3 is used to gets user by platform user ID

func (*UsersService) PublicGetUserByUserIDV3

PublicGetUserByUserIDV3 is used to get user by user ID

func (*UsersService) PublicGetUserLoginHistoriesV3

PublicGetUserLoginHistoriesV3 is used to get user s login histories status

func (*UsersService) PublicGetUserPlatformAccountsV3

PublicGetUserPlatformAccountsV3 is used to get platform accounts linked to the user

func (*UsersService) PublicLinkPlatformAccount

func (u *UsersService) PublicLinkPlatformAccount(input *users.PublicLinkPlatformAccountParams) error

PublicLinkPlatformAccount is used to link a platform user account to user account

func (*UsersService) PublicListUserIDByPlatformUserIDsV3

PublicListUserIDByPlatformUserIDsV3 is used to get list user id by platform user id

func (*UsersService) PublicPlatformLinkV3

func (u *UsersService) PublicPlatformLinkV3(input *users.PublicPlatformLinkV3Params) error

PublicPlatformLinkV3 is used to link user s account with platform

func (*UsersService) PublicPlatformUnlinkV3

func (u *UsersService) PublicPlatformUnlinkV3(input *users.PublicPlatformUnlinkV3Params) error

PublicPlatformUnlinkV3 is used to unlink user s account from specific platform

func (*UsersService) PublicSearchUserV3

PublicSearchUserV3 is used to search all users on the specified namespace that match the query on these fields: email address, display name, and username

func (*UsersService) PublicSendVerificationCodeV3

func (u *UsersService) PublicSendVerificationCodeV3(input *users.PublicSendVerificationCodeV3Params) error

PublicSendVerificationCodeV3 is used to send verification code to user

func (*UsersService) PublicUpdatePasswordV3

func (u *UsersService) PublicUpdatePasswordV3(input *users.PublicUpdatePasswordV3Params) error

PublicUpdatePasswordV3 is used to send verification code to user

func (*UsersService) PublicUpdateUserV3

PublicUpdateUserV3 is used to update user

func (*UsersService) PublicUpgradeHeadlessAccountV3

PublicUpgradeHeadlessAccountV3 is used to upgrade headless account and automatically verified the email address if it is succeeded

func (*UsersService) PublicUserVerificationV3

func (u *UsersService) PublicUserVerificationV3(input *users.PublicUserVerificationV3Params) error

PublicUserVerificationV3 is used to redeem verification code sent to user

func (*UsersService) PublicValidateUserByUserIDAndPasswordV3

func (u *UsersService) PublicValidateUserByUserIDAndPasswordV3(input *users.PublicValidateUserByUserIDAndPasswordV3Params) error

PublicValidateUserByUserIDAndPasswordV3 is used to validates user password by user ID and password

func (*UsersService) PublicVerifyHeadlessAccountV3

PublicVerifyHeadlessAccountV3 is used to upgrade user account to full account with email

func (*UsersService) PublicWebLinkPlatform

PublicWebLinkPlatform is used to create public web linking

func (*UsersService) PublicWebLinkPlatformEstablish

func (u *UsersService) PublicWebLinkPlatformEstablish(input *users.PublicWebLinkPlatformEstablishParams) error

PublicWebLinkPlatformEstablish is used to established link progress

func (*UsersService) ResetPasswordV3

func (u *UsersService) ResetPasswordV3(input *users.ResetPasswordV3Params) error

ResetPasswordV3 is used to reset user password

func (*UsersService) UpdateUserV3

UpdateUserV3 is used to update user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL