Loading
사용자 식별 및 액세스 관리
목차
필터 선택

          결과 없음
          결과 없음
          몇 가지 검색 팁

          키워드의 맞춤법을 확인하십시오.
          더 일반적인 검색 용어를 사용하십시오.
          필터 수를 줄여 검색 범위를 확장하십시오.

          전체 Salesforce 도움말 검색
          Apex 사용하여 사용자 정의 MFA 프로세스 구현(Salesforce 조직)

          Apex 사용하여 사용자 정의 MFA 프로세스 구현(Salesforce 조직)

          자체 다단계 인증(MFA) 프로세스를 구현하려면 System.UserManagement 클래스에 있는 Apex 메서드를 사용합니다. Salesforce Authenticator 및 전화(SMS) 확인 메서드에는 확인 서비스를 시작하는 메서드와 확인 서비스를 완료하는 메서드로 구성된 한 쌍의 메서드가 제공됩니다. 암호 또는 시간 기반 일회용 암호(TOTP) 확인 메서드의 경우 두 번째 메서드만 사용하여 확인 서비스를 완료할 수 있습니다. MFA에 SMS를 사용하는 것은 회사의 Experience Cloud 사이트, 직원 커뮤니티, 기타 유형의 커뮤니티 포털에 액세스하는 외부 사용자에게만 지원됩니다.

          필수 Edition

          지원 제품: Salesforce Classic 및 Lightning Experience 모두
          지원 제품: 모든 Edition

          확인 메서드에 따라 사용하는 Apex 구성이 결정됩니다.

          • Salesforce Authenticator 또는 SMS 확인 메서드에 대한 MFA 서비스를 구현하려면 initVerificationMethodverifyVerificationMethod를 사용합니다.

          • 암호 또는 TOTP 확인 메서드에 대한 MFA 서비스를 구현하려면 verifyVerificationMethod를 사용합니다.

          예
          MFA를 위한 Apex 메서드

          이 예는 Salesforce Authenticator 확인 메서드로 사용하는 MFA의 Apex 코드를 보여줍니다.

          public void initVerification() {
          // user will receive push notification on mobile device where the app is registered for MFA
           identifier = UserManagement.initVerificationMethod(Auth.VerificationMethod.SALESFORCE_AUTHENTICATOR);
          }
          
          public Auth.VerificationResult verifyVerification() {
          // requiring identifier from the initVerification
          // user will need to take the action on the mobile device where the app is registered for MFA
          return UserManagement.verifyVerificationMethod(identifier, '' , Auth.VerificationMethod.SALESFORCE_AUTHENTICATOR);
          }

          다음은 SMS의 예제입니다.

          public void initVerification() {
          // user will receive code on their registered verified phone
           identifier = UserManagement.initVerificationMethod(Auth.VerificationMethod.SMS);
          }
          
          public Auth.VerificationResult verifyVerification() {
          // requiring identifier from the initVerification
          // the code will need to be entered in this method
          return UserManagement.verifyVerificationMethod(identifier, code , Auth.VerificationMethod.SMS);
          }

          다음 두 가지 예시는 암호 및 TOTP 확인을 위해 verifyVerificationMethod만 사용하는 MFA의 Apex 코드를 보여줍니다.

          public Auth.VerificationResult verifyVerification() {
          // user will enter their password as a param in the verifyVerificationMethod for password verification method
          return UserManagement.verifyVerificationMethod('', password , Auth.VerificationMethod.PASSWORD);
          }
          public Auth.VerificationResult verifyVerification() {
          // user will enter their registered time-based one-time password (TOTP) code (token)
          return UserManagement.verifyVerificationMethod('', code , Auth.VerificationMethod.TOTP);
          }
           
          로드 중
          Salesforce Help | Article