Spring cloud with Eureka, Oauth2 and zuul

I am trying to setup a sample https://github.com/dsyer/spring-security-angular/tree/master/oauth2/ui to use eureka for the userAuthorizationUri part, but so far no luck. my oauth2 server is registered through eureka

   server:
      port: ${PORT:${SERVER_PORT:0}}
    debug:
    security:
      user:
        password: none
    zuul:
      routes:
        resource:
          path: /resource/**
          url: http://localhost:9000/resource
        user:
          path: /user/**
          serviceId: authentication-service/uaa/user

    spring:
      application:
        name: ui-service
      oauth2:
        sso:
          home:
            secure: false
            path: /,/**/*.html
        client:
          accessTokenUri: http://authentication-service/uaa/oauth/token
          userAuthorizationUri: http://authentication-service/uaa/oauth/authorize
          clientId: acme
          clientSecret: acmesecret
        resource:
          serviceId: ${PREFIX:}resource
          jwt:
            keyValue: |
              -----BEGIN PUBLIC KEY-----
              MYKEY
              -----END PUBLIC KEY-----
    logging:
      level:
        org.springframework.security: DEBUG
    eureka:
      instance:
        metadataMap:
          instanceId: ${spring.application.name}:${spring.application.instance_id:${random.int(10000)}}
      client:
        serviceUrl:
          defaultZone: http://localhost:8888/eureka/
+4
source share

Source: https://habr.com/ru/post/1584916/


All Articles