fake_cas v1.1.0 FakeCas
This module starts an application running an webserver that stubs CAS requests.
Starting
Start the GenServer by calling FakeCas.start
.
The TCP port FakeCas is running can be obtained by calling FakeCas.port
Requests
The server will validate requests do a POST /v1/tickets
and validate credentials against the valid_*
functions on FakeCas
module
The server will always return the same TGT
It will also generate STs using the valid TGT for any service on POST /v1/tickets/#{valid_tgt}
Trying to validate the ST in FakeCas.valid_st/0
will always succeed for any service:
Any other value will fail.