title: Connect to PCF Cloud Config Server Service remotely
body: <p>I have created a PCF Config Server Service in PCF. when i deploy my springboot app that acts as a Config service client, deploy to PCF and bind it to the Config server service, it seamlessly pulls the configs and all is good.</p>
  
  <p>My issue is, I am unable to connect to the PCF Config Server from my springboot app while running the app locally from my laptop.</p>
  
  <p>Based on various documentation I created the Service Key for my Config Server service and modified my bootstrap.yml as below. </p>
  
  <p>I am getting 401 Unauthorized error. 
  INFO 22180 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at: <a href="https://config-8660fe8f-2b6b-4171-bd7f-36f3a60ec48a.apps.pcfepg2wi.gm.com" rel="nofollow noreferrer">https://config-8660fe8f-2b6b-4171-bd7f-36f3a60ec48a.apps.pcfepg2wi.gm.com</a>
  WARN 22180 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: 401 Unauthorized
  INFO 22180 --- [           main] com.gm.mms.extfile.Application           : tartupProfileInfo - The following profiles are active: dev</p>
  
  <pre><code>spring:
    application:
      name: external-file-service
    profiles:
      active: dev
    cloud:
      config:
        uri: https://config-8660fe8f-2b6b-4171-bd7f- 
  36f3a60ec48a.apps.pcfepg2wi.gm.com
        username: &lt;username-here&gt;
        password: &lt;password-here&gt;
        client_secret: RwKMmAhOzuz8
        client_id: p-config-server-ebcd8a29-2615-4924-88bb-b4188d50d2b5
        access_token_uri: https://p-spring-cloud- 
   services.uaa.sys.pcfepg2wi.gm.com/oauth/token
        label: develop
  
  security:
    basic:
      enabled: false
  </code></pre>