-
Notifications
You must be signed in to change notification settings - Fork 223
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
Samples do not function for multiple reasons #410
Comments
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! |
any idea on when this example will be fixed? |
@tschn - we are working on that article now; we should have an update soon. |
FWIW, if you're looking for something that works with Spring 5, I published my own sample here: 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. |
@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? |
@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. |
OK. Thanks @rmcmurray . |
@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! |
Error in import (HelloController.java): @PreAuthorize cannot be resolved to a type And These .class files are present under dependencies but there are errors in import. Please help to resolve these errors. Thanks. |
Version is required on Maven
<dependency>
snippets@EnableOAuth2Sso is missing (now requires new Maven dependency):
Attempting to access a protected URL results in exception
org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval
Debugging info:
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: