OpenVeo server API for plugins

API Docs for: 7.0.0
Show:

CasStrategy

Extends Strategy
Module: passport

Summary

Defines a passport cas strategy to authenticate requests using a cas server.

Constructor

CasStrategy

Syntax

CasStrategy

(
  • options
  • verify
)

Summary

Parameters:

  • options Object

    The list of cas strategy options

    • service String

      The service to use to authenticate to the CAS server

    • version String

      The version of the CAS server

    • url String

      The url of the CAS server

    • certificate String

      The absolute path to the CAS server certificate

  • verify Function

    Function to call to validate user as returnd by CAS

Example:

e.g. Configuration example
// {
//   "service": "https://my-application-service-host", // Application service
//   "url": "https://my-cas-server-host:8443/cas", // CAS server url
//   "version": "3", // CAS protocol version (could be 1, 2, 3)
//   "certificate": "/home/test/cas.crt" // CAS full chain certificate
// }

Item Index

Methods

authenticate

Syntax

authenticate

(
  • request
  • options
)
async

Summary

Authenticates a request using cas.

Parameters:

  • request Object

    The express authenticate request

  • options Object

    Passport authenticate options such as redirects

logout

Syntax

logout

(
  • request
  • request
)

Summary

Logouts from cas.

Parameters:

  • request Object

    The express logout request

  • request Object

    The express response

Properties

cas

Syntax

cas

String final

Summary

Passport cas strategy name.

Default: "cas"

cas

Syntax

cas

CAS final

Summary

CAS client implementation.

logoutUri

Syntax

logoutUri

Function final

Summary

URI to return to after logging out.

service

Syntax

service

String final

Summary

Application service registered in CAS.

verify

Syntax

verify

Function final

Summary

Passport verify function to call to validate user returned by CAS.

version

Syntax

version

String final

Summary

CAS protocol version.