Commit Graph

210 Commits

Author SHA1 Message Date
Fredrik Adelöw 4a25ee5cf5 auth-backend: use the catalog client (#3298) 2020-11-18 21:10:04 +01:00
Fredrik Adelöw d21e4172b5 auth-backend: change messaging around missing email (#3287) 2020-11-13 10:04:33 +01:00
Fredrik Adelöw 752808090b auth-backend: Handle non-7-bit safe characters in the posted message data (#3280) 2020-11-12 11:48:46 +01:00
Fredrik Adelöw 4628763998 auth-backend: Encode the OAuth state param using URL safe chars (#3281) 2020-11-12 11:43:35 +01:00
Forrest Waters 842acf4f5d remove commented code 2020-10-29 12:02:33 -05:00
Forrest Waters b652bf2cc5 add changeset for onelogin 2020-10-29 12:02:33 -05:00
Forrest Waters 11664e3a99 run prettier 2020-10-29 12:02:33 -05:00
Forrest Waters 21e071fa6c working onelogin auth implementation 2020-10-29 12:02:32 -05:00
Fredrik Adelöw 002860e7ac feat(catalog-backend): move filters into their own query key (#3066) 2020-10-26 10:10:18 +01:00
Patrik Oldsberg bc9f536545 Merge pull request #2994 from spotify/rugvip/conflagrate
config-loader: switch to using --config options to load in config
2020-10-22 18:01:21 +02:00
Patrik Oldsberg 8c2b76e45f config-loader: switch to using --config options to load in config 2020-10-22 10:52:06 +02:00
blam 681c861d25 Merge remote-tracking branch 'origin' into migrate-to-msw
* origin:
  fix: ts
  fix: forwardRef to SidebarItem
  fix(cli): one more await in the test
  backend-common: make loadBackendConfig return config directly and log all resolved app-configs
2020-10-21 13:57:40 +02:00
Patrik Oldsberg 7bbeb049fe backend-common: make loadBackendConfig return config directly and log all resolved app-configs 2020-10-20 00:10:28 +02:00
blam 101978963d Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (139 commits)
  Cleanup
  Update PinButton.test.tsx
  feat: update github insights plugin version (#2973)
  Ignore IntelliJ *.iml files (#2971)
  chore(deps): bump rollup-plugin-dts from 1.4.11 to 1.4.13
  fix the plugin card on plugins page
  align 'Add to Marketplace' button on plugins page
  fix the PluginGrid on mobiles sizes
  use getBy query instead of queryBy when asserting for elements present in document (#2951)
  Update PinButton.tsx
  Add test case for Progress component (#2953)
  fix the styling of footer copy on mobile
  add changeset
  handle the case where no entities are available to show
  core-api: work around issue with ApiRef export const declarations
  core-api: move utility api system implementation into apis/system
  Update docs regarding npm config ignore-scripts flag
  Another try
  Fix Core Features configuration id (#2948)
  Fix test?
  ...
2020-10-19 23:57:40 +02:00
Mahmood Hosseini e142a2767f bug(passport-strategy-helper): Better presentation of auth errors 2020-10-14 14:21:09 -04:00
J Shamsul Bahri a0a3e6d6ca Fix: SAML provider postMessageResponse localhost (#2870)
* make saml provider path from globalConfig

* fix:(auth-backend/saml) change hardcoded localhost

Co-authored-by: JShamsul <jshamsul@grabtaxi.com>
2020-10-13 06:49:16 +02:00
blam e44cb85b22 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (66 commits)
  chore: fix lerna linting
  v0.1.1-alpha.25
  Add Code Insights plugin to sample app and marketplace (#2833)
  Improve main CI build status badge in README (#2866)
  Update roadmap: Design System 🚢 (#2858)
  github/codecov: switch to informational mode
  github/workflows: use the tip of master as the base for comparing PR code coverage
  make saml provider path from globalConfig (#2855)
  fix(catalog-backend): limit search value lengths
  Update project Copyright (#2852)
  fix(catalog-backend): actually use modified entity output (default namespace was broken)
  remove unnecessary center keyword
  Move card header bg to up contrast, fix #2558
  Update name of env authentication env vars
  Fix feedback from dtuite
  Remove chart testing workflow for now
  Only lint charts on Pull Requests
  Move the k8s deployment docs to its own helm deployment page
  Remove line in initdb script that creates backend db
  Use app-config.development.yaml to provide configuration instead of local
  ...
2020-10-13 03:56:13 +02:00
J Shamsul Bahri 79340e44b4 make saml provider path from globalConfig (#2855)
Co-authored-by: JShamsul <jshamsul@grabtaxi.com>
2020-10-12 12:11:28 +02:00
blam b33353dd39 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (110 commits)
  chore(catalog-backend): removing redudant classes and some functions
  chore(deps-dev): bump @types/webpack from 4.41.21 to 4.41.22 (#2765)
  move codecov.yml to .github
  feat(catalog-backend): add batch concurrency
  create-app: remove build step
  cli: simplify jest transform ignore regex
  feat(catalog-backend): introduce batching, speed up reading and writing of large datasets
  Techdocs: add Azure DevOps prepare support (#2748)
  feat(techdocs-header): Show breadcrumbs on docs page (#2786)
  changesets: add entry for create-app template location fix
  create-app: revert to github location type for example templates
  fix: make catalog filter work again
  Use new url scheme for techdocs
  feat: remove LocationProcessor.processEntity
  Add Dockerfile for helm chart
  feat: use the new UrlReader in the CodeOwnersProcessor
  feat: use new UrlReader in PlaceholderProcessor
  feat: remove the backstage.io/definition-at-location annotation
  Update loud-lamps-visit.md
  feat(proxy-backend): limit the forwarded http headers to a safe set
  ...
2020-10-09 14:48:32 +02:00
blam 827bb733bf chore: reworking all deps to use cross-fetch instead 2020-10-08 21:57:27 +02:00
Joel Low b083c97f84 Replace PluginDatabaseClientFactory with PluginDatabaseManager 2020-10-07 09:32:44 +08:00
Joel Low 8c78b4e9dd Fix review comments
- Combine the various exported types; the only API surface is now the
  `PluginDatabaseClientFactory` which is a free function.
- Rename to the SingleConnectionManager class.
- Refactor the PluginEnvironment type to use databaseClientFactory for
  clarity.
- Fix mergeDatabaseConfig to not override the input dictionary.
2020-10-07 09:32:43 +08:00
Joel Low e277c5dfa5 Expose types to handle Database management
This implements several types to own and manage databases on a database
server. The current SimpleDatabase* classes preserve the present
behaviour; future implementations can segregate databases to be owned by
different roles.
2020-10-07 09:32:42 +08:00
Patrik Oldsberg 0fa06d9e6e auth-backend: switch client to look up single users 2020-09-29 11:10:37 +02:00
Patrik Oldsberg 31d1108233 auth-backend: look up google users in the catalog via email annotation 2020-09-25 15:46:10 +02:00
Patrik Oldsberg 3f72bda8e6 auth-backend: forward discovery instance to providers 2020-09-25 15:46:10 +02:00
Patrik Oldsberg c6a879838d auth-backend: added CatalogIdentityClient 2020-09-25 15:46:09 +02:00
Patrik Oldsberg 29c1ed2d99 auth-backend: move auth provider router creation to router 2020-09-25 13:45:13 +02:00
Patrik Oldsberg 6e7b881f64 Merge pull request #2600 from spotify/rugvip/disco
backend: add service discovery interface and implement for single host deployments
2020-09-25 13:32:36 +02:00
Ben Lambert 57703db6f9 Merge pull request #2284 from jibone/add-saml-login
Add saml login to backstage
2020-09-25 11:37:17 +02:00
Patrik Oldsberg 0e76ab7873 backend: add and use for external URL discovery 2020-09-25 10:50:32 +02:00
J Shamsul Bahri (jibone)) e3b504798a revert identifyEnv implementation 2020-09-24 11:28:43 +08:00
Patrik Oldsberg 521728348d backend: change the default backend plugin mount point to /api 2020-09-23 09:39:47 +02:00
J Shamsul Bahri (jibone)) 60fdb3eda1 remove comment 2020-09-22 16:02:00 +08:00
J Shamsul Bahri (jibone)) 70dc0627aa remove the console.log 2020-09-21 17:53:18 +08:00
J Shamsul Bahri (jibone)) 49a21d5686 Merge branch 'master' into add-saml-login 2020-09-16 16:24:30 +08:00
Patrik Oldsberg 8c6ad088fc Merge pull request #2293 from spotify/rugvip/reoauth
auth-backend: refactor OAuthHandlers to receive a single decorated request object
2020-09-06 10:59:34 +02:00
Patrik Oldsberg b045b166b6 run prettier 2020-09-05 16:37:30 +02:00
Patrik Oldsberg 40b71f8299 auth-backend: refactory oauth refresh handler to receive a single request object 2020-09-05 16:19:14 +02:00
Patrik Oldsberg 9e07bdb43d auth-backend: slim down oauth start interface and allow for state modifications 2020-09-05 16:19:13 +02:00
J Shamsul Bahri (jibone)) 1cd640dc16 fix merge conflicts 2020-09-04 18:33:13 +08:00
J Shamsul Bahri (jibone)) b102d3ba0b Merge branch 'master' into add-saml-login 2020-09-04 18:28:09 +08:00
J Shamsul Bahri (jibone)) 667b42cfb7 Remove console.log debug stuff. 2020-09-04 16:18:32 +08:00
J Shamsul Bahri (jibone)) 1ae5a74c3a WIP: Got the SAML login working
TODO: Cleanup, remove hardcoded url.
2020-09-04 13:56:54 +08:00
Patrik Oldsberg 39934f43b6 auth-backend: add not found error if provider is not found 2020-09-03 15:11:17 +02:00
Patrik Oldsberg c8785b9ee0 auth-backend: rename OAuthProvider to OAuthAdapter 2020-09-03 15:08:38 +02:00
Patrik Oldsberg fb2d4cf241 auth-backend: refactor EnvironmentHandler to be OAuth-specific and move env config to be a provider concern 2020-09-03 13:10:45 +02:00
Patrik Oldsberg 88cf6da18d auth-backend: move passport helpers into separate lib 2020-09-03 12:02:58 +02:00
Patrik Oldsberg b8a3f851cd auth-backend: cleanup types and move them closer to home 2020-09-03 09:29:24 +02:00
Patrik Oldsberg 53a947bd5a auth-backend: split OAuthProvider into lib/oauth and lib/flow 2020-09-02 19:02:17 +02:00