Using organizations with spring-boot

Hi,

I am using the quickstarter for a regular Web app with java Spring Boot and try to login for a specific organization. Where and how can I config for which organization I want to login?

Hi @erwin.vrielink,

Welcome to the Auth0 Community!

To authenticate a user through an Organization, you will need to pass an organization parameter to the /authorize request.

For example:

https://YOUR_DOMAIN/authorize?
    response_type=code&
    client_id=YOUR_CLIENT_ID&
    redirect_uri=https://YOUR_APP/callback&
    organization=ORG_ID&
    scope=SCOPE&
    audience=API_AUDIENCE&
    state=STATE

You can learn more about authenticating users through an Organization here.

Please let me know if you have any questions. I’d be happy to help.

Thank you.

Hi,

Thanks. I was using the quickstart for a Spring-boot client en with this example it’s not possible to login for an organization, while it uses a default OAuth implementation. I think I have to change that and add the parameter manually to the call to the authorize request.

hey, were you able to find a solution for passing the organization in the Spring Boot quickstarter app? thxs