0

I'm creating new azure devops web extension, I've created new service connection of generic type (provided username and password). Need to access username and password and make rest api call inside java script file of azure devops web extension. How to form authorization header without user interaction?

0

1 Answer 1

0

This is not available for any customized extension so far. Same as a customized task or script.

Because a Service Connection involves data shaped specifically to the connected service (the Generic Service Connection being the exception that proves the rule...), you won't be able to make use of strongly typed properties in your Bash task. Instead, you may want to examine environment variables and process the service connection data manually.

More detail info you could kindly take a look at Josh E's reply in this question: How can a script access Service Connections? (Azure Devops Pipelines)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.