# Cognito Pre-Token Generation Lambda sample

**URL:** <https://forum.serverless.com/t/cognito-pre-token-generation-lambda-sample/5383>\
**Category:** Serverless Framework\
**Tags:** aws, lambda\
**Created:** [August 9, 2018, 2:02pm UTC](https://forum.serverless.com/t/cognito-pre-token-generation-lambda-sample/5383 "2018-08-09T14:02:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon10says](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/simon10says/32/2436_2.png) [@simon10says](https://forum.serverless.com/u/simon10says)\
**Post date:** [August 9, 2018, 2:02pm UTC](https://forum.serverless.com/t/cognito-pre-token-generation-lambda-sample/5383/1 "2018-08-09T14:02:23Z")

</div>

Anyone has any sample in .net/java?

I’m thinking of looking up the user against my custom rules (stored in dynamodb) and customize the claims.

Thanks.
