Documentation
¶
Overview ¶
Package lrintegrationtest contains integration tests for all API calls.
Index ¶
- func SetTestEnv()
- type AccountSetup
- type AccountSetupWithSecurityQuestion
- type CandidateToken
- type DeletePermissionList
- type Error
- type OTPVerify
- type PassChange
- type PasswordReset
- type PermissionList
- type Permissions
- type PhoneNumberArray
- type PhoneRegister
- type ProfileEmail
- type Provider
- type ResetPhonePassword
- type ResetWithEmailSecurity
- type ResetWithPhoneSecurity
- type ResetWithUsernameSecurity
- type RoleContext
- type RoleContextContainer
- type RoleList
- type Roles
- type SecurityQuestion
- type SecurityQuestionTest
- type Success
- type TestAccount
- type TestAccountRegister
- type TestEmail
- type TestEmailArr
- type TestEmailCreator
- type TestEmailLogin
- type TestFirstName
- type TestPassword
- type TestPhone
- type TestPhoneLogin
- type TestRole
- type TestUpdateRole
- type TestUsername
- type TestUsernameLogin
- type UndoPhoneVerify
- type WebhookTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTestEnv ¶
func SetTestEnv()
Types ¶
type AccountSetup ¶
type CandidateToken ¶
type CandidateToken struct {
CandidateToken string `json:"candidatetoken"`
}
type DeletePermissionList ¶
type DeletePermissionList struct {
AdditionalPermissions []string
}
type PassChange ¶
type PasswordReset ¶
type PermissionList ¶
type PermissionList struct {
Permissions []string
}
type Permissions ¶
type PhoneNumberArray ¶
type PhoneRegister ¶
type PhoneRegister struct {
Email TestEmailArr
PhoneID string
Password string
}
type ProfileEmail ¶
type ProfileEmail struct {
Email TestEmailArr
}
type ResetPhonePassword ¶
type ResetWithEmailSecurity ¶
type ResetWithEmailSecurity struct {
SecurityAnswer SecurityQuestion
Email string
Password string
ResetPasswordEmailTemplate string
}
type ResetWithPhoneSecurity ¶
type ResetWithPhoneSecurity struct {
SecurityAnswer SecurityQuestion
Phone string
Password string
ResetPasswordEmailTemplate string
}
type ResetWithUsernameSecurity ¶
type ResetWithUsernameSecurity struct {
SecurityAnswer SecurityQuestion
Username string
Password string
ResetPasswordEmailTemplate string
}
type RoleContext ¶
type RoleContextContainer ¶
type RoleContextContainer struct {
RoleContext []RoleContext
}
type Roles ¶
type Roles []struct {
Name string `json:"name"`
Permissions Permissions
}
type SecurityQuestion ¶
type SecurityQuestion struct {
QuestionID string `json:"b8c8ac7593744113a1b37e1976a43488"`
}
The security question is identified by a random string key in the LoginRadius database You can retrieve this key with a call to GetConfiguration, and replace the json tag value with your question string
type SecurityQuestionTest ¶
type SecurityQuestionTest struct {
Securityquestionanswer SecurityQuestion `json:"securityquestionanswer"`
}
Used by PutManageAccountUpdateSecurityQuestionConfig
type TestAccount ¶
type TestAccount struct {
EmailVerified bool
Email TestEmailArr
Password string
}
Account API Test Structs
type TestAccountRegister ¶
type TestAccountRegister struct {
Email TestEmailArr
Password string
}
type TestEmailArr ¶
type TestEmailCreator ¶
Authentication Test Structs
type TestEmailLogin ¶
Multi-module Test Structs
type TestFirstName ¶
type TestFirstName struct {
FirstName string
}
type TestPassword ¶
type TestPassword struct {
Password string
}
type TestPhoneLogin ¶
type TestUpdateRole ¶
type TestUpdateRole struct {
Name string `json:"name"`
Permissions Permissions
}
type TestUsername ¶
type TestUsername struct {
Username string
}
type TestUsernameLogin ¶
type UndoPhoneVerify ¶
type UndoPhoneVerify struct {
PhoneIDVerified bool
}
type WebhookTest ¶
Click to show internal directories.
Click to hide internal directories.