Skip to content

Commit

Permalink
Fix an issue where RBAC credentials are not correctly recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanzhang Zeng (Roger) committed Nov 17, 2020
1 parent 79e1055 commit 52a7e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/parameterValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export class ParameterValidator implements IOrchestratable {
public async changeContext(_0: StateConstant, _1: IActionParameters, context: IActionContext): Promise<IActionContext> {
context.package = new Package(this._packagePath);
context.scmCredentials = this._scmCredentials;
context.authenticationType = this._scmCredentials ? AuthenticationType.Scm : AuthenticationType.Rbac;
context.authenticationType = this._scmCredentials.appUrl ? AuthenticationType.Scm : AuthenticationType.Rbac;
return context;
}

private async parseScmCredentials(state: StateConstant, publishProfile: string): Promise<IScmCredentials> {
let creds: IScmCredentials = Builder.GetDefaultScmCredential();
if (publishProfile === undefined || publishProfile.trim() === "") {
if (publishProfile === undefined || publishProfile === "") {
return creds;
}

Expand Down

0 comments on commit 52a7e67

Please sign in to comment.