forked from microsoft/vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ability to use MSAL in the Desktop (microsoft#225272)
* Ability to use MSAL in the Desktop * add comment about MSAL workaround
- Loading branch information
1 parent
2b8f4b8
commit 70d2774
Showing
18 changed files
with
1,929 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
extensions/microsoft-authentication/src/browser/authProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { AuthenticationProvider, AuthenticationProviderAuthenticationSessionsChangeEvent, AuthenticationSession, EventEmitter } from 'vscode'; | ||
|
||
export class MsalAuthProvider implements AuthenticationProvider { | ||
private _onDidChangeSessions = new EventEmitter<AuthenticationProviderAuthenticationSessionsChangeEvent>(); | ||
onDidChangeSessions = this._onDidChangeSessions.event; | ||
|
||
initialize(): Thenable<void> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
getSessions(): Thenable<AuthenticationSession[]> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
createSession(): Thenable<AuthenticationSession> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
removeSession(): Thenable<void> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
|
||
dispose() { | ||
this._onDidChangeSessions.dispose(); | ||
} | ||
} |
Oops, something went wrong.