Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Unreleased
----------
-
- `Session` now supports authorization using OAuth2 tokens. Use the `token=` parameter in the constructor when
an existing access token token is known. Alternatively, ommitting the `username=` and `password=` parameters
will now prompt the user for an auth code.

v1.5.9 (2021-06-09)
-------------------
Expand Down
16 changes: 15 additions & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ can be instantiated using simply the hostname:

>>> s = Session(hostname)

If a username and password are not provided, and the SAS Viya server has **not** been configured for Kerberos then
**sasctl** will attempt to connect using OAuth2 authorization codes. In this situation, you may be prompted to open
a URL in your browser, retrieve an authorization code, and then enter it before sasctl can connect.

The final method for supplying credentials is also simple and straight-forward: environment variables.

Expand All @@ -278,7 +281,8 @@ The final method for supplying credentials is also simple and straight-forward:
- :envvar:`SASCTL_SERVER_NAME`
- :envvar:`SASCTL_USER_NAME`
- :envvar:`SASCTL_PASSWORD`

- :envvar:`SASCTL_CLIENT_ID`
- :envvar:`SASCTL_CLIENT_SECRET`



Expand Down Expand Up @@ -374,6 +378,16 @@ The name of the user that will be used when creating the :class:`.Session` insta

Password for authentication to the SAS Viya server.

.. envvar:: SASCTL_CLIENT_ID

OAuth2 client ID used during authorization.

.. envvar:: SASCTL_CLIENT_SECRET

OAuth2 client secret used during authorization.




Contributor Guide
-----------------
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def get_file(filename):
'scikit-learn',
'requests',
'six >= 1.11',
'pyyaml',
'packaging',
'futures ; python_version <= "2.7"'
],
extras_require={
Expand Down
Loading