-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Adam Ling <[email protected]> Co-authored-by: Mark Keller <[email protected]>
- Loading branch information
1 parent
bd39dc7
commit 9e04925
Showing
21 changed files
with
948 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved. | ||
# | ||
|
||
from __future__ import annotations | ||
|
||
from ._auth import Auth, get_public_key_fingerprint, get_token_from_private_key | ||
from .by_plugin import AuthByPlugin, AuthType | ||
from .default import AuthByDefault | ||
from .keypair import AuthByKeyPair | ||
from .oauth import AuthByOAuth | ||
from .okta import AuthByOkta | ||
from .usrpwdmfa import AuthByUsrPwdMfa | ||
from .webbrowser import AuthByWebBrowser | ||
|
||
FIRST_PARTY_AUTHENTICATORS = frozenset( | ||
( | ||
AuthByDefault, | ||
AuthByKeyPair, | ||
AuthByOAuth, | ||
AuthByOkta, | ||
AuthByUsrPwdMfa, | ||
AuthByWebBrowser, | ||
) | ||
) | ||
|
||
__all__ = [ | ||
"AuthByPlugin", | ||
"AuthByDefault", | ||
"AuthByKeyPair", | ||
"AuthByOAuth", | ||
"AuthByOkta", | ||
"AuthByUsrPwdMfa", | ||
"AuthByWebBrowser", | ||
"Auth", | ||
"AuthType", | ||
"FIRST_PARTY_AUTHENTICATORS", | ||
"get_public_key_fingerprint", | ||
"get_token_from_private_key", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.