Code Monkey home page Code Monkey logo

keycloak-phpass's Introduction

Keycloak PHPass

A password hash provider to handle PHPass passwords inside Keycloak.

Cannot encrypt passwords, can only verify them.

The primary purpose is to smoothly migrate from legacy databases with PHPass hashes.

You should set Authentication->Policies->Hashing Algorithm to pbkdf2-sha256. Keycloak will then automatically replace your legacy PHPass hashes with pbkdf2-sha256 hashes at the first login of the corresponding user.

Build JAR

./gradlew assemble -Pdependency.keycloak.version=${KEYCLOAK_VERSION}

Install

Copy the jar file (./build/libs) to the keycloak providers directory.

You need to restart Keycloak.

How test.

Take a user with existing credentials, and modify them to be PHPass credentials.

For example,

  • Open the database's credential table.
  • Locate the user's row.
  • In the secret_data column, set value to the full $P$... password hash.
  • In the credential_data column, set algorithm to phpass.
  • You need to restart Keycloak to clear its caches.

keycloak-phpass's People

Contributors

fjf2002 avatar

Watchers

 avatar

Forkers

symbioquine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.