Skip to content

Commit 4250e4f

Browse files
authored
fix: struct for oidc claims and optional selection set (#9)
* fix: struct for oidc claims and optional selection set
1 parent fa72a0b commit 4250e4f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lambda-appsync/src/lib.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ pub struct AppsyncIdentityIam {
199199
/// Identity information for OIDC-authenticated requests.
200200
#[derive(Debug, Deserialize)]
201201
pub struct AppsyncIdentityOidc {
202+
/// The claims
203+
pub claims: AppsyncIdentityOidcClaims,
204+
/// The subject (usually the user identifier)
205+
pub sub: String,
206+
/// Token audience
207+
pub issuer: String,
208+
}
209+
210+
/// Claims information for OIDC-authenticated requests.
211+
#[derive(Debug, Deserialize)]
212+
pub struct AppsyncIdentityOidcClaims {
202213
/// The issuer of the token
203214
pub iss: String,
204215
/// The subject (usually the user identifier)

0 commit comments

Comments
 (0)