-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from Nike-Inc/dev
Disable `ctap-keyring-device` on Windows with Python3.10+
- Loading branch information
Showing
8 changed files
with
88 additions
and
8 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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__all__ = ['config', 'aws', 'main', 'ui', 'common', 'default', 'duo', 'errors', 'okta_classic', 'okta_identity_engine', 'registered_authenticators', 'u2f', 'webauthn'] | ||
version = '2.8.1.1' | ||
version = '2.8.2-pre' |
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,60 @@ | ||
""" | ||
Copyright 2024-present Nike, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
You may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and* limitations under the License.* | ||
""" | ||
|
||
|
||
from . import errors | ||
|
||
class FakeAssertion(object): | ||
def __init__(self): | ||
self.signature = b'fake' | ||
self.auth_data = b'fake' | ||
|
||
|
||
class WebAuthnClient(object): | ||
""" Dummy WebAuthnClient class - needed until ctap-keyring-device is updated to support Python 3.10+ on Windows""" | ||
def __init__(self, ui, okta_org_url, challenge, credential_id=None, timeout_ms=30_000): | ||
return None | ||
|
||
def locate_device(self): | ||
return None | ||
|
||
def on_keepalive(self, status): | ||
return None | ||
|
||
def verify(self): | ||
raise errors.GimmeAWSCredsError( | ||
"WebAuthn devices not supported on this platform", 2 | ||
) | ||
|
||
def _verify(self, client): | ||
return None | ||
|
||
def make_credential(self, user): | ||
raise errors.GimmeAWSCredsError( | ||
"WebAuthn devices not supported on this platform", 2 | ||
) | ||
|
||
def _make_credential(self, client, user): | ||
return None | ||
|
||
def _run_in_thread(self, method, *args, **kwargs): | ||
return None | ||
|
||
def _get_pin_from_client(self, client): | ||
raise errors.GimmeAWSCredsError( | ||
"WebAuthn devices not supported on this platform", 2 | ||
) | ||
@staticmethod | ||
def _get_user_verification_requirement_from_client(client): | ||
raise errors.GimmeAWSCredsError( | ||
"WebAuthn devices not supported on this platform", 2 | ||
) |
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
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
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
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setup( | ||
name='gimme_aws_creds', | ||
version='2.8.1.1', | ||
version='2.8.2-pre', | ||
install_requires=requirements, | ||
author='Eric Pierce', | ||
author_email='[email protected]', | ||
|