Commit Graph

218 Commits

Author SHA1 Message Date
Raghunandan 72235dd51e v0.1.1-alpha.22 2020-09-18 15:14:38 +02: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
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
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
Patrik Oldsberg 5e0341f01c plugins/auth-backend: refactor OAuthProvider to derive options from app.baseUrl 2020-08-19 11:37:03 +02:00
Patrik Oldsberg 547d0a1390 auth-backend: nicer error message for missing env query 2020-08-18 12:08:38 +02:00
Raghunandan Balachandran 033233d81f Fix auth0 backend provider 2020-08-17 10:10:12 +02:00
Patrik Oldsberg 6d5157b618 Merge branch 'master' into adds_auth0 2020-08-12 09:05:00 +02:00
Patrik Oldsberg f8c696e038 v0.1.1-alpha.18 2020-08-07 17:08:28 +02:00
Fredrik Adelöw 244eef851f Merge pull request #1855 from ljupchokotev/auth-frame-csp
auth backend: fix CSP by setting script hash
2020-08-07 13:40:29 +02:00
Adhita Selvaraj 6eb6f08a8a Add docs for creating a GitHub OAuth application (#1857) 2020-08-07 09:15:45 +02:00
Ljupcho Kotev 353af384da auth backend: fix CSP by setting script hash 2020-08-06 23:02:09 +02:00
Patrik Oldsberg 8bfba79801 Merge pull request #1812 from GoWind/abstract_env
auth-backend: Encode `env` in the OAuth flow into the `state` parameter. Refs #1775
2020-08-06 18:15:03 +02:00
Patrik Oldsberg fcc0080af8 auth-backend: temporary fix for strict CSP being set 2020-08-06 15:37:54 +02:00
Govindarajan Nagarajan 959cc6fe86 Refactor: remove env parameter from callbackURL of all OAuth based
providers
2020-08-06 12:48:02 +02:00
Patrik Oldsberg 0dd8fa2828 v0.1.1-alpha.17 2020-08-05 19:36:36 +02:00
Govindarajan Nagarajan 5f06a08daa Address PR comments: Use undefined instead of passing Empty strings
Type fn that identifies the env (environment) of a Request
Fail early if `env` is not present in the request or has an invalid
`env` in the state
2020-08-05 17:04:25 +02:00
Fredrik Adelöw 55d5fb4c2b Merge pull request #1830 from spotify/dependabot/npm_and_yarn/helmet-4.0.0
chore(deps): bump helmet from 3.23.2 to 4.0.0
2020-08-05 13:40:32 +02:00
dependabot-preview[bot] ae9f757ac3 chore(deps): bump helmet from 3.23.2 to 4.0.0
Bumps [helmet](https://github.com/helmetjs/helmet) from 3.23.2 to 4.0.0.
- [Release notes](https://github.com/helmetjs/helmet/releases)
- [Changelog](https://github.com/helmetjs/helmet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/helmetjs/helmet/compare/v3.23.2...v4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-05 08:38:52 +00:00
Govindarajan Nagarajan 75467ecb60 Cleanup: Remove deadcode 2020-08-04 18:51:00 +02:00
Govindarajan Nagarajan 4ae351b06f Refactor: Make properties of OAuthState non-optional 2020-08-04 18:48:38 +02:00
Govindarajan Nagarajan cb80b2b4f8 Refactor: encode state Parameters as URLSearchParams instead of JSON 2020-08-04 18:42:16 +02:00
Govindarajan Nagarajan 2d20cf389c Refactor: Address PR Comments
Create a new `OAuthState` type for storing the fields we want in the
`state` parameter.

Update the `encodeState` and `readState` fns to use the new `OAuthState`
type.

Update tests to reflect the new type
2020-08-04 17:06:46 +02:00