Support URL
This commit is contained in:
parent
e4afb79aeb
commit
f7368810c6
3 changed files with 5 additions and 4 deletions
2
lib/start-proxy-action.js
generated
2
lib/start-proxy-action.js
generated
|
|
@ -38,7 +38,7 @@ const PROXY_USER = "proxy_user";
|
|||
const KEY_SIZE = 2048;
|
||||
const KEY_EXPIRY_YEARS = 2;
|
||||
function CredentialToStr(c) {
|
||||
return `Type: ${c.type}; Host: ${c.host}; Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`;
|
||||
return `Type: ${c.type}; Host: ${c.host}; Url: ${c.url} Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`;
|
||||
}
|
||||
const CERT_SUBJECT = [
|
||||
{
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -24,14 +24,15 @@ export type CertificateAuthority = {
|
|||
|
||||
export type Credential = {
|
||||
type: string;
|
||||
host: string;
|
||||
host?: string;
|
||||
url?: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
function CredentialToStr(c: Credential): string {
|
||||
return `Type: ${c.type}; Host: ${c.host}; Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
|
||||
return `Type: ${c.type}; Host: ${c.host}; Url: ${c.url} Username: ${c.username}; Password: ${c.password !== undefined}; Token: ${c.token !== undefined}`
|
||||
}
|
||||
|
||||
export type BasicAuthCredentials = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue