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

Support conditional access policy in obo flow. #18354

Merged
merged 35 commits into from
Feb 26, 2021

Conversation

han-gao
Copy link
Contributor

@han-gao han-gao commented Dec 25, 2020

  • Fix AzureOAuthenticationFailureHandler not display error info in web page.
  • Support conditional access policy in this flow: webapp -> webapi(obo) -> other-webapi

@ghost ghost added the azure-spring All azure-spring related issues label Dec 25, 2020
@han-gao han-gao closed this Dec 25, 2020
@chenrujun
Copy link

Hi, @han-gao , you can push to this branch forced to continue your task.

@chenrujun chenrujun reopened this Dec 28, 2020
@chenrujun chenrujun changed the title fix failureHandle not error info AzureOAuthenticationFailureHandler will not display error info in web page. Dec 28, 2020
@chenrujun
Copy link

@han-gao , Rename AzureOAuthenticationFailureHandler to AADOAuthenticationFailureHandler.

@saragluna saragluna added the azure-spring-aad Spring active directory related issues. label Jan 7, 2021
v-gaoh added 5 commits January 11, 2021 09:50
@chenrujun
Copy link

Hi, @han-gao , please merge latest master branch to your feature branch.

v-gaoh added 4 commits February 10, 2021 09:34
…to fix_not_error_info

# Conflicts:
#	sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/aad/webapp/AADWebSecurityConfigurerAdapter.java
@chenrujun chenrujun self-assigned this Feb 19, 2021
v-gaoh added 4 commits February 20, 2021 18:10
…to fix_not_error_info

# Conflicts:
#	sdk/spring/azure-spring-boot-samples/azure-spring-boot-sample-active-directory-webapp/src/main/resources/application.yml
#	sdk/spring/azure-spring-boot/pom.xml
@@ -51,7 +50,8 @@ protected void configure(HttpSecurity http) throws Exception {
.and()
.logout()
.logoutSuccessHandler(oidcLogoutSuccessHandler())
.and();
.and()
.addFilterBefore(new AADHandleConditionalAccessFilter(), ExceptionTranslationFilter.class);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By doing this, do you mean ExceptionTranslationFilter will always exist in context?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this filter handles most authorization failures and always loaded into the filterchain.

Copy link

@chenrujun chenrujun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Add comments in java code about how conditional access work.
  2. Add content in readme about how to use conditional access.

You can do these after you finished adding integration test.

@chenrujun
Copy link

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chenrujun
Copy link

Hi, @han-gao , please merge latest master branch to your feature branch.

@chenrujun
Copy link

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chenrujun chenrujun merged commit 6e7e9fb into Azure:master Feb 26, 2021
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-java that referenced this pull request Mar 25, 2022
Adding Microsoft.App stable version 2022-03-01 (Azure#18356)

* Adds base for updating Microsoft.App from version preview/2022-01-01-preview to version 2022-03-01

* Updates readme

* Updates API version in new specs and examples

* refactore properties (Azure#18137)

* [Non Break Change]Update to use easy auth v2 same as Web App (Azure#18143) (Azure#18217)

* Update auth config to use the same auth config in App Service

* Update for spell check

* Remove TokenStore/ConfigFilePath as not supported for ContainerApp

* Copy AuthConfig from previous version (Azure#18221)

* Copy updated AuthConfig from previous version

* Add suppression

* Add API for checkNameAvailability in 2022-03-01 (Azure#18204)

* add API

* update

* fix

* update

* update

* Add label property (Azure#18280)

* Add label property

* fix prettier

Co-authored-by: Juliehzl <zuh@microsoft.com>

* refactor sc properties in 03-01 (Azure#18343)

* refactor sc properties in 03-01

* Revert "refactore properties (Azure#18137)"

This reverts commit 4fe86bce74ae6a3566388d0a1037cb35be8a23e7.

* add odata query (Azure#18364)

* Updating patch spec. (Azure#18354)

* Updating patch spec.

* Fix linter

* prettier fix

* Adding x-ms-long-running-operation

Co-authored-by: Ruslan Yakushev 🚴 <1664475+ruslany@users.noreply.github.com>

Co-authored-by: Xingjian Wang <79332479+xwang971@users.noreply.github.com>
Co-authored-by: erich-wang <eriwan@microsoft.com>
Co-authored-by: Zunli Hu <zuh@microsoft.com>
Co-authored-by: Michael Dai <michaelkira@live.cn>
Co-authored-by: Vaclav Turecek <vturecek@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues azure-spring-aad Spring active directory related issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants