class

Cas::Client

Inherits Reference < Object

Constants

VERSION = "0.1"

Constructors

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")
Source

Instance methods

fetch_exec_token

Fetch the (first) CSRF token, needed prior to submitting credentials. Execute this first.

Source
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.

Source
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.

Source