cookpad / kuroko2

Kuroko2 is a web-based job scheduler / workflow engine.
MIT License
314 stars 72 forks source link

Support multiple hosted domains #106

Closed okazu-dm closed 6 years ago

okazu-dm commented 6 years ago

kuroko2 can accept only single hosted domain. This PR enable kuroko2 to accept multiple hosted domains like omniauth-google-oauth2.(https://github.com/zquestz/omniauth-google-oauth2/blob/master/lib/omniauth/strategies/google_oauth2.rb#L208)

example conf

  app_authentication:
    google_oauth2:
      client_id: '<%= ENV["GOOGLE_CLIENT_ID"] %>'
      client_secret: '<%= ENV["GOOGLE_CLIENT_SECRET"] %>'
      options:
        hd:
          - example.org
          - example.com