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

Increment azure core version to 1.7.0-beta.2 #13013

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
d0150c8
Skip Changelog processing for data track (#12787)
JimSuplizio Jul 2, 2020
405219c
ClassCastExceptionForTopQueryWithAggregate (#12633)
xinlian12 Jul 2, 2020
c39454c
Adding namespace and missing exists methods (#12780)
conniey Jul 3, 2020
f27af36
Update README.md (#12756)
justbert Jul 3, 2020
7685539
Not let our sample down if property 'azure.activedirectory.tenant-id'…
Jul 3, 2020
31029c5
Servicebus track2 readme changes 10327 (#12735)
hemanttanwar Jul 3, 2020
22ce2f8
Servicebus track2 live test receive renew lock (#12737)
hemanttanwar Jul 3, 2020
78ed9ef
disable flaky assert (#12793)
weidongxu-microsoft Jul 3, 2020
486c321
fix bug of auto configuration of spring boot starters (#12795)
yiliuTo Jul 3, 2020
e2e242c
mgmt regen resources (#12794)
weidongxu-microsoft Jul 3, 2020
6410184
mgmt fix todo (#12798)
weidongxu-microsoft Jul 6, 2020
0ba3641
Mgmt: Appplatform (#12350)
ChenTanyi Jul 6, 2020
02155b4
[Event Hubs] Consolidate all javadoc codesnippet Java files into a si…
srnagar Jul 6, 2020
60cde34
FormRecognizer Receipt design update (#12380)
samvaity Jul 6, 2020
2fc46dc
Sync eng/common directory with azure-sdk-tools repository (#12738)
azure-sdk Jul 6, 2020
714c26b
Removing bridge API for reactor. (#12827)
hemanttanwar Jul 6, 2020
b730543
Fix single upload retry. (#12834)
kasobol-msft Jul 6, 2020
3d49736
Fixes bug in buffered upload where data would be uploaded incorrectly…
gapra-msft Jul 7, 2020
d8afe9c
mgmt, add url to pom description (#12844)
weidongxu-microsoft Jul 7, 2020
467c9e7
update link in AUTH.md (#12845)
xseeseesee Jul 7, 2020
da149bb
mgmt resources fix TODOs (#12814)
xseeseesee Jul 7, 2020
00e5096
Cache refresh for container recreate with same id (#12747)
xinlian12 Jul 7, 2020
1961116
Migrate integration tests for spring-data-cosmosdb (#12609)
yiliuTo Jul 7, 2020
86afb16
Testing for Tables Autorest Code (#12512)
eboyd23 Jul 7, 2020
927fa43
Update Search APIs Based on Review (#12791)
alzimmermsft Jul 7, 2020
5a6bd8c
Enable blocking operation in batch receive (#12822)
srnagar Jul 7, 2020
9e4911b
update versions. (#12872)
g2vinay Jul 7, 2020
e59b888
Prepping 73 release (#12873)
gapra-msft Jul 7, 2020
aa1e607
Added versions and added REST docs (#12874)
gapra-msft Jul 7, 2020
c548afc
change RNTBD defaults as per learning and to be in par with .Net (#12…
moderakh Jul 7, 2020
c4e54cd
Nio read attr (#12621)
rickle-msft Jul 7, 2020
afe7b59
July patch release preparation for AppConfig, TA and FR (#12833)
mssfang Jul 7, 2020
5dfe115
Sync eng/common directory with azure-sdk-tools repository (#12870)
azure-sdk Jul 7, 2020
9009f12
Add plugin to internal avro to add empty javadoc (#12879)
gapra-msft Jul 8, 2020
34e9894
Add missing changelogs (#12876)
chidozieononiwu Jul 8, 2020
6aea90f
SpotBugs step to use the Maven proxy. (#12889)
mitchdenny Jul 8, 2020
f5fcfa2
Increment package version after release of com.azure azure-ai-textana…
azure-sdk Jul 8, 2020
f8c7aae
Increment version for storage releases (#12877)
azure-sdk Jul 8, 2020
3221338
Remove ServiceBusMessageProcessor (#12885)
conniey Jul 8, 2020
dc84cf7
Increment package version after release of com.azure azure-data-appco…
azure-sdk Jul 8, 2020
67ab775
open to azure-core, for f.setAccessible(true); in FlatteningSerialize…
weidongxu-microsoft Jul 8, 2020
d59bd7c
move AzureServiceClient to fluentcore (#12908)
weidongxu-microsoft Jul 8, 2020
ff484b6
Add Javadoc Escapes to README Overview (#12627)
alzimmermsft Jul 8, 2020
04bf47f
Increment version for formrecognizer release (#12916)
samvaity Jul 8, 2020
3df5560
Ignored flaky CF tests (#12915)
gapra-msft Jul 8, 2020
2a3e40b
Renamed azure-spring-data-cosmosdb to azure-spring-data-cosmos (#12881)
kushagraThapar Jul 8, 2020
9a509bd
Sync eng/common directory with azure-sdk-tools repository (#12912)
azure-sdk Jul 8, 2020
c4b3c17
Update versions for EH July release (#12913)
srnagar Jul 8, 2020
2f4f39f
Added script logging enabled API to CosmosStoredProcedureRequestOptio…
kushagraThapar Jul 8, 2020
2c6eb8a
Creating yml file for ctl image build ci (#12926)
simplynaveen20 Jul 8, 2020
7a9d5f5
Revert storabge blob version in version_client.txt (#12928)
srnagar Jul 8, 2020
a1800e5
Increment version for eventhubs releases (#12927)
azure-sdk Jul 8, 2020
1007365
Use proper variable syntax (#12930)
danieljurek Jul 8, 2020
f29f725
Increment package version after release of com.azure azure-core
azure-sdk Jul 8, 2020
e896387
Tweaking the Java Cosmos CTL pipeline yml (#12933)
JimSuplizio Jul 9, 2020
46e87cf
add CONTRIBUTING.MD for azure-spring-boot (#12901)
yiliuTo Jul 9, 2020
08bba18
Increment azure core version to 1.7.0-beta.2 (#12958)
jianghaolu Jul 9, 2020
5399396
Close message processor downstream. (#12921)
conniey Jul 9, 2020
d2719b2
Clean up repository resources (#12892)
chidozieononiwu Jul 9, 2020
23b3517
Sync eng/common directory with azure-sdk-tools repository (#12938)
azure-sdk Jul 9, 2020
9bdecc5
mgmt support api version detection (#12907)
xseeseesee Jul 9, 2020
0526b69
Create Migration Guide from Track 1 to Track 2 (#12909)
nickzhums Jul 9, 2020
9361802
add key vault certificate permission (#12965)
ChenTanyi Jul 9, 2020
7d211b4
PR for EH + serializer integration (#12205)
arerlend Jul 9, 2020
e7be51b
Increment version for core releases (#12969)
azure-sdk Jul 9, 2020
037e12d
Add workaround for Checkstyle error, closes #6216 (#6593)
karianna Jul 9, 2020
be3d197
Revert "PR for EH + serializer integration (#12205)" (#12976)
arerlend Jul 9, 2020
8705591
Fix the issue of ChangeFeedProcessorCodeSnippet (#12894)
Melanie-Ma Jul 9, 2020
feaf5d4
Updated azure spring data cosmos group id and artifact id (#12925)
kushagraThapar Jul 9, 2020
9861529
Added an exception to unsupported provider methods instead of no-op'i…
rickle-msft Jul 9, 2020
4bb00ef
Update ctl-image-build.yml (#12973)
simplynaveen20 Jul 9, 2020
32f2037
Remove search model builder classes (#12796)
srnagar Jul 10, 2020
a08a57b
Add some wagon options. (#12991)
mitchdenny Jul 10, 2020
e0772d4
Added idle tcp connection timeout bug where gateway connection overri…
kushagraThapar Jul 10, 2020
f627f82
Use Varargs in Model APIs (#12878)
alzimmermsft Jul 10, 2020
734b8cd
Spring - Remove Intermediate Poms (#12966)
saragluna Jul 10, 2020
eadf80d
Updates prefetch algorithm and test updates. (#12975)
conniey Jul 10, 2020
078e4e0
Add beta_tag to 1.7.0-beta.1 azure core
jianghaolu Jul 10, 2020
9a89e2a
Merge branch 'master' of github.com:Azure/azure-sdk-for-java into inc…
jianghaolu Jul 10, 2020
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
Prev Previous commit
Next Next commit
Not let our sample down if property 'azure.activedirectory.tenant-id'…
… is not confugured. (#12645)

* Not let our sample down if property 'azure.activedirectory.tenant-id' is not confugured.

* Add NoLoginSecurityConfig to disable login.

* Add comment to explain what NoLoginSecurityConfig used for.

* Recover application.properties.

* Update readme to explain what 'NoLoginSecurityConfig' is used for.

Co-authored-by: Rujun Chen <rujche@microsoft.com>
  • Loading branch information
Rujun Chen and rujche authored Jul 3, 2020
commit 768553998cf42b3ee18afc1e0d3bf212da31f83c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ azure.activedirectory.tenant-id=xxxxxx-your-tenant-id-xxxxxx
azure.activedirectory.active-directory-groups=group1, group2
```

If `azure.activedirectory.tenant-id` is configured, `AADOAuth2LoginSecurityConfig` will take effect and this app will use AAD to authentication and authorization.
If `azure.activedirectory.tenant-id` is **NOT** configured, `NoLoginSecurityConfig` will take effect and this app will **NOT** use AAD to authentication and authorization.

### Run with Maven
```shell
# Under sdk/spring project root directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package com.microsoft.azure.aad.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClient;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClientService;
Expand All @@ -13,6 +14,7 @@
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ConditionalOnProperty(prefix = "azure.activedirectory", value = "tenant-id")
@Controller
public class HomeController {
@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package com.microsoft.azure.aad.security;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
Expand All @@ -12,6 +13,7 @@
import org.springframework.security.oauth2.client.userinfo.OAuth2UserService;
import org.springframework.security.oauth2.core.oidc.user.OidcUser;

@ConditionalOnProperty(prefix = "azure.activedirectory", value = "tenant-id")
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class AADOAuth2LoginSecurityConfig extends WebSecurityConfigurerAdapter {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.azure.aad.security;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

// If "azure.activedirectory.tenant-id" is not configured,
// this bean will take effect to disable login.
@ConditionalOnMissingBean(AADOAuth2LoginSecurityConfig.class)
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class NoLoginSecurityConfig extends WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.antMatchers("/**")
.permitAll();
}
}