@@ -25,16 +25,16 @@ namespace FirebaseAdmin.Auth.Jwt
25
25
{
26
26
/// <summary>
27
27
/// 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
30
30
/// service must be called with a service account ID, and this class attempts to auto
31
31
/// discover a service account ID by contacting the local metadata service present in
32
32
/// Google-managed runtimes.
33
33
/// </summary>
34
34
internal class IAMSigner : ISigner
35
35
{
36
36
private const string SignBlobUrl =
37
- "https://iam .googleapis.com/v1/projects/-/serviceAccounts/{0}:signBlob" ;
37
+ "https://iamcredentials .googleapis.com/v1/projects/-/serviceAccounts/{0}:signBlob" ;
38
38
39
39
private const string MetadataServerUrl =
40
40
"http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email" ;
@@ -128,7 +128,7 @@ private static async Task<string> DiscoverServiceAccountIdAsync(
128
128
/// </summary>
129
129
internal class SignBlobRequest
130
130
{
131
- [ Newtonsoft . Json . JsonProperty ( "bytesToSign " ) ]
131
+ [ Newtonsoft . Json . JsonProperty ( "payload " ) ]
132
132
public string BytesToSign { get ; set ; }
133
133
}
134
134
@@ -137,7 +137,7 @@ internal class SignBlobRequest
137
137
/// </summary>
138
138
internal class SignBlobResponse
139
139
{
140
- [ Newtonsoft . Json . JsonProperty ( "signature " ) ]
140
+ [ Newtonsoft . Json . JsonProperty ( "signedBlob " ) ]
141
141
public string Signature { get ; set ; }
142
142
}
143
143
0 commit comments