Signer and IDTokenCredentials implementation using default service account on GCE#236
Conversation
2101e9f to
21a9f5b
Compare
- Add Signer and IDTokenCredentials implementation Signed-off-by: Christophe Taton <christophe.taton@gmail.com>
|
@theacodes Could you take a look at this? I haven't added any test yet, but I'd like some feedback before spending more time on this. |
|
Hi @kryzthov - just a heads up that I'm currently OOO until next week but I'll take a quick lookl |
|
All good! No rush, it's been there for a while, and it's not blocking! Enjoy your time off! |
| return False | ||
|
|
||
|
|
||
| class Signer(crypt.Signer): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| class IDTokenCredentials(credentials.Credentials, credentials.Signing): | ||
| """Open ID Connect ID Token-based service account credentials. | ||
|
|
||
| These credentials relies on the default service account of a GCE instance. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
- Reuse google.auth.iam.Signer - Expose `request` and `service_account_email`.
|
Anymore feedback on this? |
|
|
||
| self._signer = iam.Signer( | ||
| request=request, | ||
| credentials=Credentials(), |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
theacodes
left a comment
There was a problem hiding this comment.
Looking good, but needs tests.
kryzthov
left a comment
There was a problem hiding this comment.
Added some unit-tests
91da8fe to
cb74258
Compare
Signed-off-by: Christophe Taton <christophe.taton@gmail.com>
This branch includes: