Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Yitao Dong
    Hi guys. A new project is just released to support Spring Security with Azure Active Dicrectory.
    Have a try!
    Yitao Dong

    We now have full support of Spring Boot 2.0 on the Spring Boot Starters for Azure . Plus, with new Java and Spring extensions for VS Code you can build production-ready apps and easily deploy them to the cloud.


    Rodion Shkrobot

    Hi everyone, sorry for possibly bad question, but I am having an interesting issue :

    I have a spring boot application, that uses classic SQL based DBs, mongo AND we now need to connect to Cosmos DB.

    Went straight by the manual, but what I am getting is java.lang.NoSuchMethodException: com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean.<init>() during startup

    At least an idea on where to look would be extremely appreciated :(
    Yitao Dong
    I have the following problem
    javax.servlet.ServletException: com.nimbusds.jose.RemoteKeySourceException: Couldn't retrieve remote JWK set: Read timed out
    at com.microsoft.azure.spring.autoconfigure.aad.AADAuthenticationFilter.doFilterInternal(AADAuthenticationFilter.java:122) ~[azure-spring-boot-2.0.2.jar:na]
    help me please
    Yitao Dong

    Thanks for the feedback!!

    @jhanlos could you please open an issue on GitHub? We can talk more there.

    Hi, I was wondering if we can simply validate the access token sent bay a third party application?
    Kamal Kumar
    why I am getting this error fatal: unable to access 'https://github.com/Microsoft/azure-spring-boot.git/': The requested URL returned error: 403
    this is my first contribution to this open source project
    i did clicked the cla link mentioned in readme
    Kamal Kumar
    how do I get permissions to commit , "remote: Permission to Microsoft/azure-spring-boot.git denied to kaykumar."
    Kamal Kumar
    ok, got it , it was my bad, I fixed it and sent the pull request
    Any one have idea what's wrong when we receive this error message ?Assertion audience does not match the Client app presenting the assertion.
    Hello, I want to use azure notification hub for notification in my spring boot project, but I have no idea about Microsoft azure. Could anybody guide me with it.?
    Any help would be appreciated.
    Yitao Dong
    Hi Trick. Our team has not provided a Spring Starter for Notification Hub yet. You could open an issue as feature request in Spring Boot Azure GitHub repo. I’ll follow up with you for detailed scenarios from there.
    Hi, do anyone know when the next release is planned?
    Kevin Zhao
    @xscript thanks!
    Hi There I was trying to build the project but found some issues, I was wondering if anyone could give us a pointer? I am a noob at this
    Wladislaw Mitzel
    Hi there. I', trying to understand some of the tests and right now I am a little bit confused when looking at com.microsoft.azure.spring.autoconfigure.aad.AADAuthenticationFilterTest#beforeEveryMethod There it says Assume.assumeTrue(!Constants.CLIENT_ID.contains("real_client_id")); but the constant CLIENT_ID contains exactly the string "real_client_id". So is this a (complex) way of ignoring tests, or is there something I don't understand?
    Michael Lavelle
    H there. Wondered if there was a scheduled release date for the b2c branch fo azure-spring-boot ?
    Yitao Dong
    @michaellavelle the preview release will be scheduled by end of this February.
    Has anyone encountered the issue "Could not autowire" with AADAuthenticationFilter?
    with spring boot 2.1.2
    Michael Velez
    I am trying to follow the example on setting up AAD B2C but running into a problem has anyone run this successfully?
    The network flows that I am going through in my browser seem like they are pretty much right but it seems like spring is having trouble building a Principal from the results
    2019-04-03 15:53:16.443 ERROR 17296 --- [nio-8080-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
    java.lang.IllegalArgumentException: Missing attribute 'name' in attributes
        at org.springframework.security.oauth2.core.user.DefaultOAuth2User.<init>(DefaultOAuth2User.java:67) ~[spring-security-oauth2-core-5.1.1.RELEASE.jar:5.1.1.RELEASE]
        at org.springframework.security.oauth2.core.oidc.user.DefaultOidcUser.<init>(DefaultOidcUser.java:89) ~[spring-security-oauth2-core-5.1.1.RELEASE.jar:5.1.1.RELEASE]
        at org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService.loadUser(OidcUserService.java:93) ~[spring-security-oauth2-client-5.1.1.RELEASE.jar:5.1.1.RELEASE]
        at org.springframework.security.oauth2.client.oidc.userinfo.OidcUserService.loadUser(OidcUserService.java:51) ~[spring-security-oauth2-client-5.1.1.RELEASE.jar:5.1.1.RELEASE]
    Michael Velez
    I think I figured it out, I hadn't followed the steps exactly when creating the Sign Up/Sign In user flow because I wanted to only collect the bare minimum of data needed at signup point. But it turns out that "Display Name" is absolutely required.
    How can we validate a token using Spring Security Filter without configuring as Authorization or Resource Server ?
    OAuth2 v2.0 token specifically with Microsoft Azure
    Kylie Liang
    We are running a survey to better understand how you are running Spring Cloud today. Look forward to hearing from you. https://microsoft.qualtrics.com/jfe/form/SV_3sfoRGOef0HwP2d. Thank you.
    Ervis Zyka

    I have the key "azure.activedirectory.b2c.client-id" stored in the azure keyvault
    as 'azure-activedirectory-b2c-client-id'. I am trying to access this key in my code
    using the @Value spring annotation.

    private String activeDirectoryClientId;

    The keyvault code replaces all the '.' characters with '-'

    so it can not transform it properly.

    We've managed to find a workaround by having the following line in the application.properties

    Any suggestions on how we should handle these kind of problems?

    Suman Mitra
    In a client-directed-flow I want to write a custom identity provider where I would like to use my service account. Iam writing a spring service and from there I would like to signs a service account to be validated against AAD to get the token. I want to avoid the popup. Is it possible?
    Hi, I'm looking for Client side encryption with Azure SQL and Spring Boot? Is there a tutorial about Always Encrypted? Thanks
    Martin Burchard
    Hello, has anyone successfully combined Azure B2C Auth with a stateless application?
    The B2C Auth itself is working