Updating context.request.query.redirect_uri in rules

Hi,

I am looking for a way to add a query parameter in redirect_uri coming with request. it might be a way to do this is update context.request.query.redirect_uri in rules. I dont think its possible but still

function update_rediirect (user, context, callback) {
  context.request.query.redirect_uri = context.request.query.redirect_uri + '?param=value';
  callback(null, user, context)
}

Is there any other way to achieve this?

Thanks.

Hi @shubham.goyal,

Depending on what you are trying to accomplish here, you may be better off adding this data as a custom claim.

If this doesn’t work for you, can you share more info about what you are trying to accomplish?

Thanks @dan.woda thats a good idea.

1 Like

Let me know if you have any more questions about it.

1 Like

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