CasClient client interface

interface Client {
    authentication: ((casServerPrefix, service) => void);
    generalToken: ((tenantId) => string);
    logout: ((casServerPrefix, service) => void);
    redirect: ((service) => void);
    ticketValidation: ((casServerPrefix, service) => void);
}

Properties

authentication: ((casServerPrefix, service) => void)

authentication

Type declaration

    • (casServerPrefix, service): void
    • Parameters

      • casServerPrefix: string

        cas sever 登录接口url

      • service: string

        当前请求资源url

      Returns void

generalToken: ((tenantId) => string)

get general token

Type declaration

    • (tenantId): string
    • Parameters

      • tenantId: string

        tenant id

      Returns string

Returns

string

logout: ((casServerPrefix, service) => void)

logout

Type declaration

    • (casServerPrefix, service): void
    • Parameters

      • casServerPrefix: string

        string

      • service: string

        url

      Returns void

redirect: ((service) => void)

Page redirect to service

Type declaration

    • (service): void
    • Parameters

      • service: string

        redirect url

      Returns void

ticketValidation: ((casServerPrefix, service) => void)

check ticket interface

Type declaration

    • (casServerPrefix, service): void
    • Parameters

      • casServerPrefix: string

        string cas server 验证ticket接口url

      • service: string

        当前请求资源url(带ticket参数)

      Returns void