Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion azure-spring-boot-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<properties>
<azure.spring.boot.version>2.1.9-SNAPSHOT</azure.spring.boot.version>
<azure.dependencies.bom.version>2.1.0.M8</azure.dependencies.bom.version>
<azure.dependencies.bom.version>2.1.0.M9</azure.dependencies.bom.version>
<spring.data.cosmosdb.version>2.1.9</spring.data.cosmosdb.version>
<spring.data.gremlin.version>2.1.8</spring.data.gremlin.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,24 @@ Open application.properties in your project to configure


### Step 5: Angular JS
In `app.js`, make following changes. The client leverages Azure AD library for JS to handle AAD authentication in single page application. The following snippet of code configures adal provider for your registered app.
In `app.js`, make following changes. The client leverages Azure AD library for JS to handle AAD authentication in single page application. The following snippet of code configures msal provider for your registered app. ClientID is your application ID and \<tenant\> is a identifier within the directory itself (e.g. a domain associated to the tenant, such as contoso.onmicrosoft.com, or the GUID representing the TenantID property of the directory).
```
adalProvider.init(
{
instance: 'https://login.microsoftonline.com/',
tenant: 'your-aad-tenant',
clientId: 'your-application-id',
extraQueryParameter: 'nux=1',
cacheLocation: 'localStorage',
},
$httpProvider
);

window.applicationConfig = {
clientID: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
};

msalProvider.init(
{
authority: 'https://login.microsoftonline.com/<tenant>',
clientID: applicationConfig.clientID,
cacheLocation: 'localStorage',
postLogoutRedirectUri: 'http://localhost:8080/logout',

tokenReceivedCallback: function (errorDesc, token, error, tokenType) {
},
},
$httpProvider
);
```

### Step 6: Give it a run
Expand Down

This file was deleted.

Loading