Commit Graph

237 Commits

Author SHA1 Message Date
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
Julien Lind 7cae755909 Update README.md (#2591)
API Path missing on non-local deployment
2020-09-24 16:26:30 +02:00
Patrik Oldsberg 9c5a0e836b Merge pull request #2562 from spotify/rugvip/api
backend: change the default backend plugin mount point to /api
2020-09-24 15:58:12 +02:00
blam f326c2ee1e Merge branch 'master' of github.com:spotify/backstage into feat/backend-plugin
* 'master' of github.com:spotify/backstage: (30 commits)
  fix(techdocs-core): use the content of the readme as long description for the pypi package (#2578)
  chore: add contrib to CONTRIBUTING.md (#2585)
  Fix typo (#2584)
  backend-common: default config env to development
  v0.1.1-alpha.23
  TechDocs: Inject CSS transformer and initial backstage style integration for reader (#2560)
  bug(gql): use import to import the graphql module
  Rename file
  [blog] Announce CNCF Sandbox (#2568)
  document cleaning - tutorial quickstarts (#2520)
  Simplify codecov flag names
  chore(scaffolder-backend): typo in visibility
  Kubernetes plugins boilerplate (#2559)
  CHANGELOG: add entry for SessionApi refactor
  Upload package specific code coverage to codecov
  Add codecov flags for core and core-api packages
  TechDocs: Enable allowVulnerableTags in sanitize-html (#2554)
  chore: trust the Boolean :)
  docs: regenerate api reference docs
  core: refactor SessionStateApi to SessionApi with sign-in/out
  ...
2020-09-24 10:54:04 +02:00
J Shamsul Bahri (jibone)) e3b504798a revert identifyEnv implementation 2020-09-24 11:28:43 +08:00
blam 6c55d38348 v0.1.1-alpha.23 2020-09-23 16:40:49 +02: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
blam 6f70008386 chore(cli): fixing issues with the new dependency 2020-09-21 23:37:35 +02:00
J Shamsul Bahri (jibone)) 70dc0627aa remove the console.log 2020-09-21 17:53:18 +08:00
J Shamsul Bahri (jibone)) 1b8f839870 Merge branch 'master' into add-saml-login 2020-09-21 16:16:45 +08:00
Raghunandan 72235dd51e v0.1.1-alpha.22 2020-09-18 15:14:38 +02: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
Patrik Oldsberg 46bdf1f0ca Merge pull request #2268 from spotify/rugvip/authref
auth-backend: refactor to split lib, move types closer to home, update docs, renaming things
2020-09-04 09:59:58 +02: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
Patrik Oldsberg 875f254827 Merge branch 'master' into new-release-31-aug-20 2020-09-02 16:17:40 +02:00
Patrik Oldsberg c08a83260e auth-backend: use correct interface in factory return type 2020-09-02 14:21:58 +02:00
Patrik Oldsberg c319de51a7 backend-common: add resolvePackagePath 2020-09-01 19:33:49 +02:00
Emma Indal 3b545791ce new release 31 aug 20 2020-09-01 14:10:22 +02:00
Fredrik Adelöw 568f398aa9 BREAKING CHANGE: no longer add express.json() by default to backend 2020-09-01 11:59:31 +02:00
Fredrik Adelöw b0963c6a3e Merge pull request #2129 from GoWind/accept-updated-refresh-tokens
Update Refresh Token, if provided by the server in the refresh grant. Refs #2128
2020-08-28 09:47:11 +02:00
Govindarajan Nagarajan 9da9a1c94e refactor: styling and variable naming 2020-08-27 11:08:23 +02:00
Govindarajan Nagarajan 1665dbbb46 Update Refresh Token, if provided by the server in the refresh grant
The OAuth2 specifications specify that during the refresh grant, the
server may provide an alternate refresh Token along with the access
Token when performing a token refresh.
The oauth2 provider in the `auth-backend` ignores the newer refresh
token during the refresh grant.
This commit will update the refresh token cookie at the end of the
call to the /auth/oauth2/refresh endpoint if the server provides a new
refresh token
grant a
2020-08-26 16:53:53 +02:00
Raghunandan 734dcca107 Release v0.1.1-alpha.20 2020-08-26 11:33:14 +02:00
Raghunandan Balachandran 280f7d72c3 Merge branch 'master' of github.com:spotify/backstage into add-microsoft-azure-auth 2020-08-25 17:15:51 +02:00
Chris Simmons 5ed8e5d05c simplified and cleaned up duplicate code 2020-08-22 12:26:06 +12:00
Stefan Ålund c6c3c94c18 Camelcase GitHub and GitLab (#2034)
* Camelcase GitHub and GitLab

* GitLab

* Code GitLab

* GitHub in code

* Fix auth naming

* Update docs/features/software-templates/adding-templates.md

Co-authored-by: Raghunandan Balachandran <soapraj@gmail.com>

* Update docs/features/software-templates/extending/create-your-own-preparer.md

Co-authored-by: Raghunandan Balachandran <soapraj@gmail.com>

Co-authored-by: Raghunandan Balachandran <soapraj@gmail.com>
2020-08-21 14:48:16 +02:00
Raghunandan 15e334a584 Release v0.1.1-alpha.19 2020-08-21 11:40:04 +02:00
Chris Simmons d4a6bc5504 udpated env vars to match provider name 2020-08-21 16:32:04 +12:00
Chris Simmons b253c56526 add microsoft azure auth provider + add to example app 2020-08-21 15:46:17 +12:00
Raghunandan Balachandran 74f1b2762d Merge pull request #2040 from spotify/rugvip/auth-providers
plugins/auth-backend: refactor providers for exporting with consistent casing
2020-08-20 15:12:45 +02:00
Sebastian Qvarfordt 13908d69c2 TechDocs: Access entity techdocs from service catalog (#1835)
* feature(techdocs): JIT generation of techdocs

* Fix linting issues

* Add Techdocs tab to entity page

* Added missing dep

* Added missing dep

* Removed duplicate dep

* Better tab navigation

* Update label on entity page to say docs

* Fix lint issue

* Move building of docs from entity to a function

* feature(techdocs): JIT generation of techdocs

* Fix linting issues

* Add Techdocs tab to entity page

* Added missing dep

* Added missing dep

* Removed duplicate dep

* Better tab navigation

* Update label on entity page to say docs

* Fix lint issue

* Move building of docs from entity to a function

* attempt to add back react as a dep

* Fixed failing test

* fix(techdocs): Hopefully fixed tests

* Fixed another failing test

* Initial apiRef for techdocs storage

* Cleaned up some code in reader

* test(headertabs): add tests to HeaderTabs component

* fix(headertabs): change tab mock id

* fix(techdocs-generator): fix problem with macOS symlink to tmp folder

* fix(lint): remove unused configApiRef

* wip

* Ongoing cleanups

* Cleanups and fix tests

* WIP cleanups

* Clean up some things

* Clean up some things

* Added missing notice header

* ts issue fixed

* Add show contition to api tab

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Emma Indal <emmai@spotify.com>
2020-08-20 14:06:09 +02:00
Oliver Sand 774a000729 Readme for api-docs Plugin (#2041)
* docs(api-docs): add details to readme

* docs: fix wrong markdown in readme files
2020-08-20 13:57:59 +02:00
Patrik Oldsberg b3fa6ffadd plugins/auth-backend: refactor providers for exporting with consistent casing 2020-08-20 11:15:34 +02:00