Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c0abbe5

Browse filesBrowse files
Ace NassriJon Wayne Parrott
authored andcommitted
'Signer' is invalid, use 'RSASigner' instead. (GoogleCloudPlatform#977)
1 parent a359e09 commit c0abbe5
Copy full SHA for c0abbe5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎endpoints/bookstore-grpc/jwt_token_gen.py

Copy file name to clipboardExpand all lines: endpoints/bookstore-grpc/jwt_token_gen.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
"""Example of generateing a JWT signed from a service account file."""
17+
"""Example of generating a JWT signed from a service account file."""
1818

1919
import argparse
2020
import json
@@ -32,7 +32,7 @@ def generate_jwt(service_account_file, issuer, audiences):
3232
with open(service_account_file, 'r') as fh:
3333
service_account_info = json.load(fh)
3434

35-
signer = google.auth.crypt.Signer.from_string(
35+
signer = google.auth.crypt.RSASigner.from_string(
3636
service_account_info['private_key'],
3737
service_account_info['private_key_id'])
3838

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.