How to set SAML RelayState in Actions?

Hi,

I’m migrating from Rules to Action Flows.
Now I’m completely stuck with migrating the following Rule code:

function (user, context, callback) {
   
 // some SAML mapping here
 //...

  context.samlConfiguration.RelayState = "Some Relay State";
  callback(null, user, context);
 
}

I can’t find any working way to set RelayState parameter that should be returned with SAMLResponse.
Is this even possible with Actions?

Thanks.

2 Likes

Hi @aliaksei,

Welcome to the Auth0 Community!

I can’t find a definitive answer on this one. I’ll reach out internally and report back. Thanks.

3 Likes

Hi again @aliaksei,

It sounds like it’s not currently available in Actions. Would you mind sharing a bit about the use case and I can pass it on to our product manager?

Hi @dan.woda,

Sure, the use case is pretty simple and is described here Using Auth0 with Microsoft Active Directory on Amazon AppStream 2.0 | Desktop and Application Streaming

That’s perfect, thanks for the link!