Gateway-Discovery repository for gateway and discovery service If the cognito url changes please go to the resources on Gateway Service and change the url that is on line 22 of application.yml file. To utilize cognito url once it has been properly set, you can do: