Skip to content

Commit c0abbe5

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

endpoints/bookstore-grpc/jwt_token_gen.py

Lines 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)