Details

      Description

      I found a small typo in code snippet in keycloak docs: In second code example instead of calling the method getIdentity on object $evaluation it should be called on the object context:

      var context = $evaluation.getContext();
      var identity = context.getIdentity();
       
      if (identity.hasRole('view_device')) {
          $evaluation.grant();
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pcraveiro Pedro Igor
                Reporter:
                kirill380 Kirill Liubun
                Tester:
                Zuzana Schwarzova
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: