Skip to content

Commit

Permalink
Fixed merge issues. (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov authored Jul 17, 2020
1 parent 7279cc3 commit 851bebf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions specs/persistence/mapiObjectStorage.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MapiClient } from "./../../src/services/mapiClient";
import { MapiObjectStorage } from "../../src/persistence/mapiObjectStorage";
import { assert, expect } from "chai";
import { expect } from "chai";

describe("MAPI Object Storage", async () => {
it("Correctly translates resources", async () => {
const mapiClient = new MapiClient(null, null, null, null);
const mapiClient = new MapiClient(null, null, null);
const mapiObjectStorage = new MapiObjectStorage(mapiClient);

const pageResource = mapiObjectStorage.paperbitsKeyToArmResource("pages/somepage");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ export class OperationDetails {
const api = await this.apiService.getApi(`apis/${apiName}`);
this.api(api);

if (this.authorizationServers) {
const associatedServerId = api.authenticationSettings?.oAuth2?.authorizationServerId ||
api.authenticationSettings?.openid?.openidProviderId;

if (this.authorizationServers && associatedServerId) {
const associatedAuthServer = this.authorizationServers
.find(x => x.name === api.authenticationSettings?.oAuth2?.authorizationServerId);
.find(x => x.name === associatedServerId);

this.associatedAuthServer(associatedAuthServer);
}
Expand Down

0 comments on commit 851bebf

Please sign in to comment.