jhipster / jhipster-registry

JHipster Registry, based on Spring Cloud Netflix Eureka and Spring Cloud Config
Apache License 2.0
698 stars 657 forks source link

Add support for Auth0 #532

Closed juliensadaoui closed 2 years ago

juliensadaoui commented 2 years ago

related to #511

mraible commented 2 years ago

Adding bug bounty. Thanks for adding this!

juliensadaoui commented 2 years ago

I have tested the registry with several IDP providers (Keycloak, Okta, Auth0) connected to it and it works fine.

mraible commented 2 years ago

I tested this with Auth0 tonight and can confirm it works.

mraible commented 2 years ago

I think it'd be good to add a section on how to run the registry with oauth2 for local development.

juliensadaoui commented 2 years ago

I've been using the following:

SPRING_PROFILES_ACTIVE=dev,oauth2,native,swagger ./mvnw

It seems like this might be a bit dated.

We don't need to define the swagger spring profile. We use the spring.profiles.group property in our application.yml to define a group, it's a new feature in Spring Boot 2.4.

spring:
  profiles:
    active: #spring.profiles.active#
    group:
      dev:
        - dev
        - api-docs

Please note that the swagger profile is replaced by api-docs

pascalgrimaud commented 2 years ago

let's merge this thanks for the work @juliensadaoui and thanks for the review @mraible

juliensadaoui commented 2 years ago

Bounty claimed at https://opencollective.com/generator-jhipster/expenses/65060

pascalgrimaud commented 2 years ago

@juliensadaoui : approved