class Cas::Client

Defined in:

laf-client/cas-client.cr

Constant Summary

VERSION = "0.1"

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

def fetch_exec_token #

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


[View source]
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.


[View source]
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.


[View source]