Publication date: 07/24/2024

Connect to the CAS Server

You can show the login window and prompt the user to provide the URL for the CAS server and their login information.

CAS Connect( Prompt( "Never"|"Always"|"IfNeeded" ) );

To add the login details to the script, follow this example:

CAS Connect( URL( URL ), Username( username ), Password( password ) );

Information about the CAS server appears in the log after the user logs in.

To specify a trusted certificate for https connections to the CAS server, use the optional Certificates argument.

CAS Connect( URL( URL ), Certificates( string ) );

To specify whether a certificate is verified, add either Verify Certificates() or No Verify Certificates() to the script:

Verify Certificates( 0|1 )
No Verify Certificates( 0|1 )

To specify a proxy server, add Proxy Server() to the script:

Proxy Server( "https://mycompany.com:80" )
Proxy User( username )

To bypass a proxy server, add Bypass Proxy() to the script:

Bypass Proxy( "https://localhost:80" )

To specify the authorization method for connection to the CAS server, add Authorization Method to the script. For versions of Viya newer than Viya 3.5, use the Bearer argument. The default value is Basic.

Authorization Method( "Bearer"|"Basic" )
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).