cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Translate a SAMLResponse > decode on Base64 > use the metadata as Request Attribute

Hi community people,

I have a use case where I need to capture a custom error server side, via request attribute.

The custom error is available in a SAMLResponse comprise in the header value of a request that I'm monitoring via oneagent.

I could capture the SAMLResponse but I would need to convert it on Base64 to have a human readable request attribute [es. transforming the saml "3ijbr43i5jj346bi" in "Error n. 25"]

Is that something possible inside Dynatrace once I have the exact request under the oneagent full-stack monitoring?

Thank you


Ps I ask again cause this answear is from 2017

https://community.dynatrace.com/spaces/482/dynatrace-open-qa/questions/191115/ability-to-read-base64...

3 REPLIES 3

Julius_Loman
DynaMight Legend
DynaMight Legend

No, it's not possible directly. However, if you can find a place in your code working with the error string in plain text, you could try to capture that on the method level - if it's in a supported language such as JAVA or .NET. It depends on the code and it might not be possible without code modification.

Or you can modify your code and send that request attribute from code using OneAgent SDK.

Or you will have to capture in Base64 and live with Base64 strings in Dynatrace UI, which not comfortable indeed. 🙂

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Aahah the third one!


Well I would like to be free to change other peoples code but apparently I'm not the dev here.

Thank you for your time!

The second may be achievable in your case, but you will need to read and understand the code. if it's java or net, it's often easily decompiled and you can likely find a place (class/method) to capture the value. It's often time consuming, but doable.
Method hotspots may give you a very good idea where to start looking in the code.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts