Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LineServerAuthenticator

Hierarchy

  • LineServerAuthenticator

Implements

Index

Constructors

Properties

bot: LineBot
httpOperator: AuthHttpOperator
liffId: string
loginChannelId: string
platform: "line" = LINE

Methods

  • delegateAuthRequest(req: IncomingMessage, res: ServerResponse): Promise<void>
  • Handle requests required in the auth flow, for the most of time, it's used for redirecting user-agent from/to other identity provider (IdP). Any request match route "/{platform}/*" would be delegated to this method, and it's responsible to close the the server response.

    Parameters

    • req: IncomingMessage
    • res: ServerResponse

    Returns Promise<void>

  • getLiffUrl(path?: string): string
  • verifyCredential(credential: LineAuthCredential): Promise<LineVerifyAuthResult>
  • verifyRefreshment(data: LineAuthData): Promise<LineVerifyAuthResult>

Generated using TypeDoc