# Adding extra parameter in Authorization code flow

**URL:** <https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857>\
**Category:** Get Help\
**Tags:** rules, login, auth0\
**Created:** [June 22, 2021, 3:44pm UTC](https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857 "2021-06-22T15:44:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gajanan.kulkarni.19](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gajanan.kulkarni.19/32/13308_2.png) [@gajanan.kulkarni.19](https://community.auth0.com/u/gajanan.kulkarni.19)\
**Post date:** [June 22, 2021, 3:44pm UTC](https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857/1 "2021-06-22T15:44:36Z")

</div>

Hello,  
I want to create new session in application whenever user logs into app. I am envisioning to call createSession api call from Auth0 rule. But problem is that this api need one extra parameter from client app. So my question is , is there any provision client app send this extra parameter into login process of Auth0 and if there is any way I can access this parameter in Auth0 rule from context parameter.

---

<div class="post-metadata">

**Author:** ![sidharth.chaudhary](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sidharth.chaudhary/32/20686_2.png) [@sidharth.chaudhary](https://community.auth0.com/u/sidharth.chaudhary)\
**Post date:** [June 22, 2021, 11:24pm UTC](https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857/2 "2021-06-22T23:24:21Z")

</div>

Hey @gajanan.kulkarni.19 , Welcome to the Auth0 community!

Have you tried adding extra params in the /authorize query initiated by the application?  
CHeck out this community post as well:

> [@Context.request.query with Universal login](https://community.auth0.com/t/context-request-query-with-universal-login/26871):
>
> Using Lock I can pass a value to Auth0 Rules using a property on the params object like this: var lockAuthOptions = { redirectUrl: "https://example.com", responseType: 'token id\_token', params: { audience: 'http://myaudience', myproperty: "hello rule!!" } } and access it in a rule like this: function (user, context, callback) { var value = context.request.query.myproperty; return callback(null, user, context); } How do I accompl…

Regards,  
Sid

---

<div class="post-metadata">

**Author:** ![gajanan.kulkarni.19](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gajanan.kulkarni.19/32/13308_2.png) [@gajanan.kulkarni.19](https://community.auth0.com/u/gajanan.kulkarni.19)\
**Post date:** [June 23, 2021, 9:13am UTC](https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857/3 "2021-06-23T09:13:34Z")

</div>

> [@sidharth.chaudhary](#):
>
> /authorize

yup it worked. Thanks.

Is there any way I can implement same thing in C# desktop app.

---

<div class="post-metadata">

**Author:** ![sidharth.chaudhary](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sidharth.chaudhary/32/20686_2.png) [@sidharth.chaudhary](https://community.auth0.com/u/sidharth.chaudhary)\
**Post date:** [June 28, 2021, 12:18am UTC](https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857/4 "2021-06-28T00:18:55Z")

</div>

@gajanan.kulkarni.19, Are you using any Auth0 SDK for the C# desktop app? Might need to explore this direction.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 13, 2021, 12:18am UTC](https://community.auth0.com/t/adding-extra-parameter-in-authorization-code-flow/64857/5 "2021-07-13T00:18:56Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
