Skip to content
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

Msal update #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,30 @@ This sample illustrates the basic concepts for interacting with OneDrive via Mic

Files included in this project:

* index.html - A sample web app to view the contents of the signed in user's OneDrive and show the JSON structures returned by the API.
* callback.html - A callback page used as part of the OAuth authenication flow.
* odauth.js - A simple js library for handling the OAuth2 implicit grant flow for OneDrive. Called from index.html.
* index.html - The controls and layout for the sample app.
* scripts\OneDriveExplorerApp.js - The JavaScript code for the application which signs in using MSAL and retrieves data from Microsoft Graph.
* scripts\Msal.js - [Microsoft Authentication library for JavaScript](https://github.com/AzureAD/microsoft-authentication-library-for-js)
* scripts\AuthenticationHandler.js - Helper file for working with Msal.js

## Getting started

To get started with this sample project, register a new application via the [Microsoft App Registration Portal](https://apps.dev.microsoft.com).

* Add the web platform to your application, and enter the redirect URL where you will host the sample. For example, `http://localhost:9999`.
* Save changes to your app.
* Copy the application ID for your newly created app into [scripts\OneDriveExplorerApp.js:5](blob/master/scripts/OneDriveExplorerApp.js#L5).

### Using IIS Express

If you have IIS Express installed, you can launch the sample app from the commandline:

```cmd
C:\Program Files\IIS Express\iisexpress.exe /Path:C:\Path\To\Sample /Port:9999
```

This will launch IIS express and start hosting the files at `C:\Path\To\Sample` on `http://localhost:9999`.
You can then navigate in your browser to this URL to use the sample.


## License

Expand Down
12 changes: 0 additions & 12 deletions callback.html

This file was deleted.

Loading