Comments (10)
This example is broken. Please see item #3 and post solution. stewartadams hints, while useful, do not solve the problem. Nor do the 'See also:' items above. These issues have been opened for an entire month with no resolution. You need to keep up!
from azure-docs-sdk-java.
FWIW, if you're looking for something that works with Spring 5, I published my own sample here:
https://github.com/stewartadam/azuread-springsecurity5-oauth2-kickstart
It uses the built-in OAuth 2 support for Spring Security for Spring 5 instead of the add-on spring-security-oauth2 package, which is no longer compatible with Spring 5.
from azure-docs-sdk-java.
See also:
microsoft/azure-spring-boot#244
https://stackoverflow.com/questions/49170814/azure-active-directory-with-spring
from azure-docs-sdk-java.
any idea on when this example will be fixed?
from azure-docs-sdk-java.
@tschn - we are working on that article now; we should have an update soon.
from azure-docs-sdk-java.
@brunoborges any updating for the issue? Still get the "A redirect is required to get the users approval" exception. Is there anyone can help to fix it?
Thanks!!
from azure-docs-sdk-java.
@jason279 - I am experiencing the same issue that you are seeing, and we are currently looking into that.
However, for now you can use the example azure-active-directory-spring-boot-sample application as a starting point for building an application; that sample has been tested and it works as expected.
from azure-docs-sdk-java.
OK. Thanks @rmcmurray .
from azure-docs-sdk-java.
@stewartadam, @jason279, and @tschn - we've made changes the the Spring starter which resolve the issues that you were seeing, and we've updated the article accordingly:
Thanks!
from azure-docs-sdk-java.
Error in import (HelloController.java):
The import org.springframework.security.access.prepost.PreAuthorize cannot be resolved
@PreAuthorize cannot be resolved to a type
And
(WebSecurityConfig.java)
The type org.springframework.security.authentication.AuthenticationManager cannot be resolved. It is indirectly referenced from required .class files
These .class files are present under dependencies but there are errors in import.
Maven Dependencies > spring-security-core-5.0.6.RELEASE.jar
Please help to resolve these errors. Thanks.
from azure-docs-sdk-java.
Related Issues (20)
- Generate Track 2 Management libraries locally and copy them over to reference docs website as short term solution HOT 1
- Root README Refers to Invalid Links/Paths
- Does not show UPLOAD of streamed file, but says it does HOT 1
- Missing supported client libriaries in azure identity "next steps" section
- Missing the read example
- Broken link HOT 3
- Cannot create mysql user sdk HOT 1
- Azure Communication Service - While creating ChatThreadClient, getting error 401
- "os" cannot be "Linux" but only "linux", but the example has it with capital L HOT 1
- Spring package clean up in docs repo HOT 1
- AzureServiceBusTopicAutoConfiguration should import AzureServiceBusAutoConfiguration HOT 1
- Picture links in READMEs are not changed into GitHub commit url
- Disable automatic pushing of ref docs to live
- Typo "Github"→"GitHub"
- Regarding the issue that message reception from partitions stops
- This repo is missing important files HOT 1
- JavaDoc for Storage HOT 3
- OWASP Dependency Checker flags issues on dependent libraries
- Docker hub links are broken
- Type in API method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-docs-sdk-java.