OAuth 2.0 Configuration

Configure your Spinnaker deployment to use OAuth 2.0 for authentication.

Halyard config

The full schema for configuring OAuth 2.0 via Halyard is:

  1. security:
  2. authn:
  3. oauth2:
  4. # Whether OAuth 2.0 is enabled.
  5. enabled: boolean
  6. client:
  7. # The OAuth client ID you have configured with your OAuth 2.0 provider.
  8. clientId: string
  9. # The OAuth client secret you have configured with your OAuth provider.
  10. clientSecret: string
  11. # The access token URI for your OAuth provider.
  12. accessTokenUri: string
  13. # The user authorization URI for your OAuth 2.0 provider.
  14. userAuthorizationUri: string
  15. # The scope to request when obtaining an access token from your
  16. # OAuth 2.0 provider.
  17. scope: string
  18. # The externally accessible URL for Gate. For use with load balancers
  19. # that do any kind of address manipulation for Gate traffic, such as an
  20. # SSL terminating load balancer.
  21. preEstablishedRedirectUri: string
  22. # The method used to transmit authentication credentials to your
  23. # OAuth 2.0 provider; defaults to header.
  24. clientAuthenticationScheme: [header|query|form|none]
  25. # Whether the current URI in the request should be preferred over the
  26. # pre-established redirect URI.
  27. useCurrentUri: boolean
  28. resource:
  29. # The user info URI for your OAuth 2.0 provider.
  30. userInfoUri: string
  31. # Mapping of user attributes to fields returned by your OAuth 2.0 provider.
  32. # This field controls how the fields returned from the OAuth 2.0 provider's
  33. # user info endpoint are translated into a Spinnaker user.
  34. userInfoMapping:
  35. email: string
  36. firstName: string
  37. lastName: string
  38. username: string
  39. # The map of requirements the userInfo request must have. This is used to
  40. # restrict user login to specific domains or to users having a specific attribute.
  41. userInfoRequirements: map<string, string>

Halyard CLI commands

There are Halyard CLI commands to edit each field above; these are documented here .

Last modified August 28, 2020: fix ordering to match current site (4ca0bf9)