Conversation
c26fa14 to
d222100
Compare
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
nateprewitt
left a comment
There was a problem hiding this comment.
I left some target comments but it seems like we've taken a lot of the general purpose signing interface and put it directly into the AWS SDK.
If we can avoid customers having to reimplement all of this themselves, we should try to keep things like IdentityResolver and HttpSigner in smithy_python since they're not AWS specific. We should also try to avoid using "SDK" in most of these contexts and use the more general term "client".
python-packages/aws-smithy-python/aws_smithy_python/exceptions.py
Outdated
Show resolved
Hide resolved
python-packages/smithy-python/smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/smithy-python/smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
f7a3e47 to
b6fff66
Compare
python-packages/aws-smithy-python/aws_smithy_python/exceptions.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/auth.py
Outdated
Show resolved
Hide resolved
python-packages/smithy-python/smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/smithy-python/smithy_python/interfaces/identity.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/auth.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/auth.py
Outdated
Show resolved
Hide resolved
python-packages/aws-smithy-python/aws_smithy_python/interfaces/auth.py
Outdated
Show resolved
Hide resolved
| """Represents a way an AWS service will authenticate the customer's identity.""" | ||
|
|
||
| scheme_id: str | ||
| """A unique identifier for the authentication scheme (v4, v4a, none, bearer, etc.).""" |
There was a problem hiding this comment.
Do we have this pattern elsewhere in the codebase currently? If so, we should consider fixing this. We shouldn't be using multiple docstrings like this within the class definition generally. It's also odd they follow what they're discussing. Is there a reason for the current layout?
We can either include this info in a single docstring, or use line comments above the variable to add any specific information.
There was a problem hiding this comment.
Yes this is the current style being used. I copied what was in retries and http. I can update to comments above the variable as I think they do provide helpful context.
cc @jonemo
python-packages/aws-smithy-python/aws_smithy_python/interfaces/auth.py
Outdated
Show resolved
Hide resolved
…thon. Removed all usage of TypeVar and Generic and removed some files from gitignore.
Description of changes:
This adds several interfaces for identities and authentication. An
Identityobject represents who an AWS customer is.HttpAuthSchemerepresents a method by which the identity of a customer is authenticated. There are several other interfaces defined that are used for signing requests, resolving identities/auth schemes and configuring identity resolvers.This also includes a couple of new exception types and a few additional paths to ignore in
.gitignore.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.