Unilim
    Preparing search index...

    Class CAS

    Index

    Constructors

    • Parameters

      • lemonldap: string

        An authenticated session cookie.

      Returns CAS

    Properties

    lemonldap: string

    An authenticated session cookie.

    COOKIE: "lemonldap"
    HOST: "https://cu-proxy.vexcited.com"

    Methods

    • Authorize an user through /oauth2 route.

      Parameters

      • client: OAuth2
      • challenge: boolean = false
      • state: string = ""

      Returns Promise<URL>

      callback URL with authentication details

    • Authenticates to a given service using the CAS as SSO. Most of the time it'll generate a ticket URL.

      Parameters

      • service: Services

        service to authenticate to through CAS

      Returns Promise<URL>

      an authenticated url to said service

    • Retrieves CAS tokens using the authorized OAuth2.0 callback URL.

      Parameters

      • callback: URL

        url created with authorize method

      • client: OAuth2

        oauth2 linked to the url

      • challenge: boolean = false

      Returns Promise<Tokens>

    • Authenticates through the CAS with the given username and password.

      Parameters

      • username: string
      • password: string

      Returns Promise<CAS>