@@ -25,16 +25,16 @@ namespace FirebaseAdmin.Auth.Jwt
2525{
2626 /// <summary>
2727 /// An <see cref="ISigner"/> implementation that uses the
28- /// <a href="https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/signBlob">IAM
29- /// service</a> to sign data. The IAM
28+ /// <a href="https://cloud.google.com/iam/docs/ reference/credentials/ rest/v1/projects.serviceAccounts/signBlob">
29+ /// IAMCredentials service</a> to sign data. The IAMCredentials
3030 /// service must be called with a service account ID, and this class attempts to auto
3131 /// discover a service account ID by contacting the local metadata service present in
3232 /// Google-managed runtimes.
3333 /// </summary>
3434 internal class IAMSigner : ISigner
3535 {
3636 private const string SignBlobUrl =
37- "https://iam .googleapis.com/v1/projects/-/serviceAccounts/{0}:signBlob" ;
37+ "https://iamcredentials .googleapis.com/v1/projects/-/serviceAccounts/{0}:signBlob" ;
3838
3939 private const string MetadataServerUrl =
4040 "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email" ;
@@ -128,7 +128,7 @@ private static async Task<string> DiscoverServiceAccountIdAsync(
128128 /// </summary>
129129 internal class SignBlobRequest
130130 {
131- [ Newtonsoft . Json . JsonProperty ( "bytesToSign " ) ]
131+ [ Newtonsoft . Json . JsonProperty ( "payload " ) ]
132132 public string BytesToSign { get ; set ; }
133133 }
134134
@@ -137,7 +137,7 @@ internal class SignBlobRequest
137137 /// </summary>
138138 internal class SignBlobResponse
139139 {
140- [ Newtonsoft . Json . JsonProperty ( "signature " ) ]
140+ [ Newtonsoft . Json . JsonProperty ( "signedBlob " ) ]
141141 public string Signature { get ; set ; }
142142 }
143143
0 commit comments