You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add documentation that the sprig template library is supported in the template syntax.
For a long time I've been manually trying to render a JSON string in the id_tokenclaims field but was stumped on trying to handle nested fields. All I needed to do in the end was {{ toJson .Extra }}
After hours of trial and error I came across this file: https://github.com/ory/oathkeeper/blob/master/x/template.go which is how I discovered sprig. I only got to this particular file because I saw printIndex used in the documentation but didn't see it in the text/template's standard function documentation.
Perhaps sprig is a standard tool in the a Go developer's toolbox, but not being a Go developer myself I had no knowledge of this library.
My use-case is that I need to pass my custom hydrator's response into the JWT token.
Describe your ideal solution
It would be great if the use of sprig could be called out with some basic examples. For example, in the id_token documentation with toJson function usage.
Workarounds or alternatives
--
Version
0.40.6
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I am marking this issue as stale as it has not received any engagement from the community or maintainers for a year. That does not imply that the issue has no merit! If you feel strongly about this issue
open a PR referencing and resolving the issue;
leave a comment on it and discuss ideas on how you could contribute towards resolving it;
leave a comment and describe in detail why this issue is critical for your use case;
open a new issue with updated details and a plan for resolving the issue.
Throughout its lifetime, Ory has received over 10.000 issues and PRs. To sustain that growth, we need to prioritize and focus on issues that are important to the community. A good indication of importance, and thus priority, is activity on a topic.
Unfortunately, burnout has become a topic of concern amongst open-source projects.
It can lead to severe personal and health issues as well as opening catastrophic attack vectors.
The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone.
If this issue was marked as stale erroneously you can exempt it by adding the backlog label, assigning someone, or setting a milestone for it.
Thank you for your understanding and to anyone who participated in the conversation! And as written above, please do participate in the conversation if this topic is important to you!
Preflight checklist
Ory Network Project
No response
Describe your problem
Please add documentation that the sprig template library is supported in the template syntax.
For a long time I've been manually trying to render a JSON string in the
id_token
claims
field but was stumped on trying to handle nested fields. All I needed to do in the end was{{ toJson .Extra }}
After hours of trial and error I came across this file: https://github.com/ory/oathkeeper/blob/master/x/template.go which is how I discovered sprig. I only got to this particular file because I saw
printIndex
used in the documentation but didn't see it in the text/template's standard function documentation.Perhaps sprig is a standard tool in the a Go developer's toolbox, but not being a Go developer myself I had no knowledge of this library.
My use-case is that I need to pass my custom hydrator's response into the JWT token.
Describe your ideal solution
It would be great if the use of sprig could be called out with some basic examples. For example, in the id_token documentation with
toJson
function usage.Workarounds or alternatives
--
Version
0.40.6
Additional Context
No response
The text was updated successfully, but these errors were encountered: