アットウィキロゴ

IDM_ex06

※Excercise 6 は OPTIONAL です

Force User to Supply Authentication Question Answers

1. バックアップディレクトリを作成する
2. BPE より、End User Menu というForm を Open する
3. File メニューより Save to Fileを選択し、バックアップをとる
4. <bootcamp>/custom/config/custom/phase1/Rule-areQuestionsAnswered.xml を読み込む

  • このルールは、そのユーザが authentication questions の回答を作成しているかどうかを返す

5. End User Menu Form に、このルールを使用する expression を追加する

  • a. End User Menu を右クリックし、Insert -> Expression を選択する
  • b. (v5.0の場合)graphical window より Display -> XMLを選択
  • c. 次のロジックを追加する
  • (

    defvar name="questionsAnswered"> <rule name="areQuestionsAnswered"> <argument name="questions" value="$(waveset.questions)"/> <argument name="loginInterface" value="UI_LOGIN_CONFIG_DISPLAY_NAME_ALL_INTERFACES"/> </rule>

    /defvar>

    • ) 6. End User Menuに、QuestionsNotAnsweredContainer, QuestionsAnsweredContainer という2つのフィールドを追加する
  • a. QuestionsNotAnsweredContainer の Disable 表現として、questionsAnswered 値が isTrue であるという条件を設定する
  • b. QuestionsAnsweredContainer の Disable 表現として、questionsAnswered 値が isFalse であるという条件を設定する
  • c. End User Menu の2つめのリンク のリンク先を URL user/changeAnswers.jsp とし、QuestionsNotAnsweredContainerへ移動する
  • d. 他のリンクを QuestionsAnsweredContainer へ移動する

7. End User Menu の subtitle を authentication questions の解答未作成の場合に表示するロジックを追加する

  • a. questionsAnswered 値が isFalseの場合、以下のコメントを生成する
  • (

    font color='#ff0000'>You have not supplied answers to your authentication questions.<br/> The answers you supply will be used to verify your identity when you forget your password.<br/></font>

    • ) 8. リポジトリへ格納する
      9. http://<localhost>:<port>/<app>/debug より Configuration::System Configurationを編集する
  • a. 第一Object ノード内に、以下のendUserAccess属性についての記述を追加する
    • (

      Configuration id="#ID#Configuration:SystemConfiguration" … <Extension> <Object> <Attribute name="endUserAccess"> <Object> <Attribute name="Rule"> <List> <Object name="areQuestionsAnswered"/> </List> </Attribute> </Object> </Attribute> …

      • )
  • b. セーブする

10. エンドユーザ画面にて、機能変更を確認する。

タグ:

+ タグ編集
  • タグ:
最終更新:2007年11月15日 07:10