Jump to content
Welcome to our new Citrix community!

Self create basic authentication header


Recommended Posts

Hello,

we want to create a rewrite rule to add the Authorization header manually with basic authentication. For this, we want to use the username from aaa.login.username and as password also aaa.login.username.

Both must be encoded with base64. 

i created the following insert-http-header action, but this action cannot be bound as rewrite-response policy to the lb vServer.

 

text.APPEND(TEXT.APPEND("Basic ")+aaa.LOGIN.USERNAME+text.APPEND(":")+aaa.LOGIN.USERNAME).B64ENCODE

text.APPEND(TEXT.APPEND("Basic ")+aaa.LOGIN.USERNAME+text.APPEND(":")+aaa.LOGIN.USERNAME).B64ENCODE

What is my mistake? How can i manually create the string?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...