[JIRA] (JENKINS-60709) base64 encoding support when binding usernameColonPassword

2 views
Skip to first unread message

anders@hammar.net (JIRA)

unread,
Jan 9, 2020, 9:17:02 AM1/9/20
to jenkinsc...@googlegroups.com
Anders Hammar created an issue
 
Jenkins / Improvement JENKINS-60709
base64 encoding support when binding usernameColonPassword
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: credentials-binding-plugin
Created: 2020-01-09 14:15
Environment: n/a
Priority: Minor Minor
Reporter: Anders Hammar

Would it make sense to have support for optionally have the value bound by usernameColonPassword base64 encoded?

The scenario is that I'd like to have ONE Username and password credential defined in my Jenkins instance, representing the (user) account in Nexus. I'd like to be able to use that for all access with NExus, e.g. Maven repos and npm registries.
When publishing to a npm registry in Nexus it is possible to use basic auth and hence this username/password credential, but it needs to be base64 encoded. Info here: https://help.sonatype.com/repomanager3/formats/npm-registry#NpmRegistry-AuthenticationUsingBasicAuth

My idea is to add an additional optional param for usernameColonPassword to be able to specify that the value should be base64 encoded before bound. Possibly it could generalized to support different encodings, should it make sense.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages