Skip to content

luneo7/authenticator-icpbrasil-keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICP-Brasil Authenticator - Keycloak v3.4.3.FINAL

  1. Keycloak must be configured to request the client certificate, to configure see the following item in Keycloak guide Enable X.509 Cliente Certificate User Authentication

  2. Keycloak must be in execution

  3. The project must be compiled e installed with the following deploy command

   $ ./mvnw clean install wildfly:deploy
  1. Copy the "login-icpbrasil-info.ftl" file to the folder "themes/base/login" that's inside the Keycloak install directory

  2. Login in the administrative console.

  3. Go to the "Authentication" page, in the "Flows" tab you will see the current authentication flows. It's not possible to alter the defaults, so you have to create or to copy one. Copy the "Browser" flow.

  4. In your copy, click "Add Execution". Select "ICPBrasil/Validate Username Form" and click "Save"

  5. Move the item "ICPBrasil/Validate Username Form" so that it is before "Browser Forms". Enable it by selecting "ALTERNATIVE" in the "Requirement" column. Configure it by going to the "Actions" column and clicking "Config".

  6. In the configuration, in the item "User Identity Source", select one of the options related to ICPBrasil (Subject's CPF, Subject's CNPJ, Subject's CPF or CNPJ). Under "User mapping method" select "Username or Email". In the "A name of user attribute" fill in with "uid".

About

ICP-Brasil Digital Certificate Authentication Module For Keycloak

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published