Details

      Description

      When running:

      mvn clean install -DskipTests=true
      cd examples
      mvn clean install
      

      the last command will fail with the compilation failure.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0-jboss-2:compile (default-compile) on project authenticator-required-action-example: Compilation failure: Compilation failure:
      [ERROR] /home/mposolda/IdeaProjects/keycloak/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionCredentialProvider.java:[36,8] org.keycloak.examples.authenticator.SecretQuestionCredentialProvider is not abstract and does not override abstract method getCredentialTypeMetadata() in org.keycloak.credential.CredentialProvider
      [ERROR] /home/mposolda/IdeaProjects/keycloak/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionAuthenticator.java:[101,21] method appendCookieValue in class org.keycloak.common.util.ServerCookie cannot be applied to given types;
      [ERROR] required: java.lang.StringBuffer,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,boolean,boolean,org.keycloak.common.util.ServerCookie.SameSiteAttributeValue
      [ERROR] found: java.lang.StringBuffer,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,boolean,boolean
      [ERROR] reason: actual and formal argument lists differ in length
      [ERROR] /home/mposolda/IdeaProjects/keycloak/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionAuthenticator.java:[110,38] cannot find symbol
      [ERROR] symbol:   method getSelectedCredentialId()
      [ERROR] location: variable context of type org.keycloak.authentication.AuthenticationFlowContext
      [ERROR] /home/mposolda/IdeaProjects/keycloak/examples/providers/authenticator/src/main/java/org/keycloak/examples/authenticator/SecretQuestionAuthenticator.java:[114,20] cannot find symbol
      [ERROR] symbol:   method setSelectedCredentialId(java.lang.String)
      [ERROR] location: variable context of type org.keycloak.authentication.AuthenticationFlowContext
      [ERROR] -> [Help 1]
      

      It will be good to:

      • fix compilation issues
      • Make sure that affected example (authentication secret question example) is still working according to it's README
      • Update Keycloak documentation based on the changes, as the documentation contains some source-code examples of SecretQuestionAuthenticator (server-development guide, the Authentication SPI chapter)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mabartos Martin Bartos
                  Reporter:
                  mposolda Marek Posolda
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: