-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Identity] Removed AzureApplicationCredential from our public API #18129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,20 @@ | |
// Licensed under the MIT license. | ||
|
||
import { assert } from "chai"; | ||
import { AzureApplicationCredential } from "../../../src"; | ||
import { MsalTestCleanup, msalNodeTestSetup, testTracing } from "../../msalTestUtils"; | ||
import { getError } from "../../authTestUtils"; | ||
import { Context } from "mocha"; | ||
import { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth"; | ||
|
||
describe("AzureApplicationCredential", function() { | ||
// TODO: Use the real one once we decide to re-enable this on the public API. | ||
class AzureApplicationCredential implements TokenCredential { | ||
getToken(_scope: string | string[], _getTokenOptions?: GetTokenOptions): Promise<AccessToken> { | ||
throw new Error("Not implemented"); | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just here to prevent us from removing this file. It’s easier to clean up by the time we decide to include the AzureApplicationCredential back on the public API. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about moving this test file to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There’s already a test file for this credential in the internal folder. These ones use recordings, which we could move to fit the internal folder path etc, but feels unnecessary since this isn’t part of the public API. The decision to either remove this credential or add it back will happen right after (or around) the GA date. |
||
|
||
// TODO: Re-enable this when possible. | ||
describe.skip("AzureApplicationCredential", function() { | ||
let cleanup: MsalTestCleanup; | ||
const environmentVariableNames = ["AZURE_TENANT_ID", "AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET"]; | ||
const cachedValues: Record<string, string | undefined> = {}; | ||
|
Uh oh!
There was an error while loading. Please reload this page.