Skip to content

Commit 94f6f0d

Browse files
committed
remove state paramter from encrypted response
Signed-off-by: Johannes Tuerk <johannes.tuerk@lissi.id>
1 parent 4a274e8 commit 94f6f0d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/WalletFramework.Oid4Vc/Oid4Vp/AuthResponse/Encryption/EncryptedAuthorizationResponse.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace WalletFramework.Oid4Vc.Oid4Vp.AuthResponse.Encryption;
1414

15-
public record EncryptedAuthorizationResponse(string Jwe, Option<string> State)
15+
public record EncryptedAuthorizationResponse(string Jwe)
1616
{
1717
public override string ToString() => Jwe;
1818
}
@@ -64,7 +64,7 @@ [new JweRecipient(JweAlgorithm.ECDH_ES, verifierPubKey.ToEcdh())],
6464
extraProtectedHeaders: headers,
6565
settings: settings);
6666

67-
return new EncryptedAuthorizationResponse(jwe, response.State);
67+
return new EncryptedAuthorizationResponse(jwe);
6868
}
6969

7070
public static FormUrlEncodedContent ToFormUrl(this EncryptedAuthorizationResponse response)
@@ -74,8 +74,6 @@ public static FormUrlEncodedContent ToFormUrl(this EncryptedAuthorizationRespons
7474
{ "response", response.ToString() }
7575
};
7676

77-
response.State.IfSome(state => content["state"] = state);
78-
7977
return new FormUrlEncodedContent(content);
8078
}
8179

0 commit comments

Comments
 (0)