/cas-bcrypt-demo

Apereo CAS Authenticate with Hashed Password by BCrypt

Primary LanguageDockerfile

Apereo CAS Authenticate with Hashed Password by BCrypt

Run

  • Add cas.example.org to your hosts file:
> echo '127.0.0.1 cas.example.org' >> /etc/hosts
> docker-compose up -d
> docker-compose restart cas

Login

Create hashed password

import bcrypt
hp = bcrypt.hashpw(b'1234', bcrypt.gensalt(prefix=b'2a'))
bcrypt.checkpw(b'1234', hp)

Reference