class Cas::Client
- Cas::Client
- Reference
- Object
Defined in:
laf-client/cas-client.crConstant Summary
-
VERSION =
"0.1"
Constructors
Instance Method Summary
-
#fetch_exec_token
Fetch the (first) CSRF token, needed prior to submitting credentials.
-
#submit_credentials(username, password)
Attempt a sign-in with a given username and password, obtaining a Duo::Client if successful.
-
#submit_duo_resp(duo_result : Duo::Resp(Duo::ResultResp))
Submit a
Duo::Resp(Duo::ResultResp)
, duo_result after completing the two-factor challenge.
Constructor Detail
def self.new(query_params : URI::Params | String, user_agent : String = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36")
#
Instance Method Detail
def fetch_exec_token
#
Fetch the (first) CSRF token, needed prior to submitting credentials. Execute this first.
def submit_credentials(username, password)
#
Attempt a sign-in with a given username and password, obtaining a Duo::Client if successful. You are responsible for using the Duo::Client to complete the two-factor challenge.
def submit_duo_resp(duo_result : Duo::Resp(Duo::ResultResp))
#
Submit a Duo::Resp(Duo::ResultResp)
, duo_result after completing the two-factor challenge.
If successful, recieve the redirect URL indicating where to proceed to.