@@ -17,21 +17,21 @@ system administrator on how to acquire an account.
17
17
18
18
To connect to a CAS server, you simply import SWAT and use the :class: `swat.CAS ` class
19
19
to create a connection. This has a couple of different forms. The most
20
- basic is to pass the hostname, port, userid , and password.
20
+ basic is to pass the hostname, port, username , and password.
21
21
22
22
.. ipython :: python
23
23
:suppress:
24
24
25
25
import os
26
26
host = os.environ[' CASHOST' ]
27
27
port = os.environ[' CASPORT' ]
28
- userid = os.environ.get(' CASUSER' , None )
28
+ username = os.environ.get(' CASUSER' , None )
29
29
password = os.environ.get(' CASPASSWORD' , None )
30
30
31
31
.. ipython :: python
32
32
33
33
import swat
34
- conn = swat.CAS(host, port, userid , password)
34
+ conn = swat.CAS(host, port, username , password)
35
35
36
36
However, if you are using a REST connection to CAS, a URL is the more natural
37
37
way to specify a host, port, and protocol.
@@ -40,9 +40,9 @@ way to specify a host, port, and protocol.
40
40
:verbatim:
41
41
42
42
conn = swat.CAS(' https://my-cas-host.com:443/cas-shared-default-http/' ,
43
- userid = ' ...' , password = ' ...' )
43
+ username = ' ...' , password = ' ...' )
44
44
45
- Notice that in the URL case, ``userid `` and ``password ``, must be specified
45
+ Notice that in the URL case, ``username `` and ``password ``, must be specified
46
46
as keyword parameters since the ``port `` parameter is being skipped. Also,
47
47
in this case we are using a proxy server that requires the base path
48
48
of 'cas-shared-default-http'. If you are connecting directly to a CAS
0 commit comments