Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Create abstract Verifier and Signer, remove key_id hack from App Engine and IAM signers#115

Merged
theacodes merged 2 commits intomasterfrom
allow-key-id-none
Feb 22, 2017
Merged

Create abstract Verifier and Signer, remove key_id hack from App Engine and IAM signers#115
theacodes merged 2 commits intomasterfrom
allow-key-id-none

Conversation

@theacodes
Copy link
Contributor

Resolves #112

@theacodes theacodes added this to the 1.0.0 milestone Feb 17, 2017
Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LG

to :attr:`key_id` and :meth:`sign`. This could result in a signature
that was signed with a different key than the one indicated by
:attr:`key_id`. It's recommended that if you use this in your code
that you account for this behavior by building in retry logic.

This comment was marked as spam.

This comment was marked as spam.



class RSASigner(Signer):
"""Signs messages with a RSA private key.

This comment was marked as spam.

This comment was marked as spam.

def __init__(self, private_key, key_id=None):
self._key = private_key
self._key_id = key_id
""""""

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Feb 22, 2017

LGTM?

@theacodes
Copy link
Contributor Author

LGTM?

6-anchorman-quotes-burgundy

@theacodes theacodes merged commit 254befe into master Feb 22, 2017
@theacodes theacodes deleted the allow-key-id-none branch February 22, 2017 22:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants