Commit Graph

461 Commits

Author SHA1 Message Date
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
blam 12942d16c4 chore: updating api-report
Signed-off-by: blam <ben@blam.sh>
2021-06-18 10:08:26 +02:00
blam 2d881016cc chore: dont export default auth provider
Signed-off-by: blam  <ben@blam.sh>
Signed-off-by: blam <ben@blam.sh>
2021-06-18 10:08:26 +02:00
blam 90bd5ab9e7 chore: updating the api-docs as some PR's were merged after the api-docs PR merge that were not rebuilt
Signed-off-by: blam <ben@blam.sh>
2021-06-18 10:08:26 +02:00
Patrik Oldsberg 820de63018 Merge pull request #6076 from backstage/rugvip/allreports
scripts/api-extractor: create and check API reports for all(most) plugins
2021-06-17 15:46:11 +02:00
Ben Lambert 79a5fc65a8 Merge pull request #4532 from backstage/rugvip/authin
auth-backend: implement sign-in resolver and profile transform for google provider
2021-06-17 15:33:13 +02:00
Patrik Oldsberg d8d7226fce plugins: generate api reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-17 13:30:06 +02:00
github-actions[bot] 36e5a82e9b Version Packages 2021-06-17 08:08:44 +00:00
Patrik Oldsberg 1aa31f0afc auth-backend: add support for GitLab auth refresh
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-16 12:13:27 +02:00
blam f5f290f1c2 feat: update the public api instead of profileTransform it is AuthHandler
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-16 10:56:42 +02:00
blam 551c050e23 feat: actually export the googleSignInResovlers for use in apps
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-16 10:42:48 +02:00
blam 8adb6f6bcd feat: enable backwards compatability and write a simple test
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>

Signed-off-by: blam <ben@blam.sh>
2021-06-16 10:34:48 +02:00
Himanshu Mishra 7dd84f37f0 Apply suggestions from code review
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Himanshu Mishra a0949d5892 docs: Add docs explaining sign-in resolvers and profile transform
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-15 13:12:39 +02:00
Himanshu Mishra a848395e2b auth-backend: getEntityClaims make sure target is group kind
We are interested in the User isMemberOf Group relation. So this is just an additional check that the target is of Group kind.

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-15 13:12:39 +02:00
Himanshu Mishra 17a26e7ed3 auth-backend: Use stringifyEntityRef helper
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 1111c0753c auth-backend: implement sign-in and profile options for google provider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 48a5dcf9d5 auth-backend: added SignInResolver and ProfileTransform types
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 02d2b8681f auth-backend: add getEntityClaims helper that figures out the claims needed to represent an entity
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg 3430f0d1ff auth-backend: add ent to possible claims in TokenParams
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
Patrik Oldsberg de81880419 auth-backend: refactor CatalogIdentityClient to depend on TokenIssuer directly
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-15 13:12:39 +02:00
github-actions[bot] 4a93128245 Version Packages 2021-06-10 12:18:06 +00:00
Patrik Oldsberg 432af8743f auth-backend: import modules directly for mocking
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-08 10:45:54 +02:00
github-actions[bot] b5a0d1c5d7 Version Packages 2021-05-27 10:23:15 +00:00
github-actions[bot] 18285453eb Version Packages 2021-05-20 11:48:46 +00:00
jrusso1020 65e6c45410 Remove circular dependencies
In reference to issue #5563 this does the initial work to remove
all the circular dependencies that we have encountered while
building backstage using bazel. The next step will be to implement
a method to catch these circular dependencies before they get
merged in

Signed-off-by: jrusso1020 <jrusso@brex.com>
2021-05-15 11:17:05 -06:00
github-actions[bot] df31bdca8f Version Packages 2021-05-12 09:39:51 +00:00
github-actions[bot] d397eb470f Version Packages 2021-05-06 08:25:18 +00:00
github-actions[bot] 51b6cf465d Version Packages 2021-04-08 11:32:56 +00:00
Teun Willems 81fa98b3ab fix: displays name from jwt instead of using email address
Signed-off-by: Teun Willems <teun.willems@theapsgroup.com>
2021-04-01 14:25:19 +02:00
github-actions[bot] 8e00ab7e63 Version Packages 2021-03-31 12:21:12 +00:00
Fredrik Adelöw d13b0cefa2 Merge pull request #5043 from backstage/freben/unregister
Update the entity unregister dialog behavior, to support both unregistration as well as plain deletion
2021-03-30 09:40:53 +02:00
Erik Larsson a25efcc643 skip sqllite
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-03-29 13:51:02 +02:00
Erik Larsson bd7018e6ab fix linting
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-03-29 13:51:02 +02:00
Erik Larsson 0d55dcc749 fix: use timestamp with timezone for signing_keys
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-03-29 13:51:02 +02:00
Fredrik Adelöw 676ede6438 Update the entity unregister dialog behavior, to support both unregistration as well as plain deletion
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-26 09:07:05 +01:00
github-actions[bot] 844da89090 Version Packages 2021-03-25 17:46:13 +00:00
Tim Hansen 67f66c2962 Fix auth environment type; GitLab audience optional
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-03-24 15:47:17 -06:00
dependabot[bot] d42f055d48 chore(deps): bump express-promise-router from 3.0.3 to 4.1.0
Bumps [express-promise-router](https://github.com/express-promise-router/express-promise-router) from 3.0.3 to 4.1.0.
- [Release notes](https://github.com/express-promise-router/express-promise-router/releases)
- [Changelog](https://github.com/express-promise-router/express-promise-router/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/express-promise-router/express-promise-router/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-23 04:26:33 +00:00
github-actions[bot] 718eea4f08 Version Packages 2021-03-18 12:31:44 +00:00
Patrik Oldsberg 6819c2aec8 Merge pull request #4896 from GoWind/expose-verify-nonce
Expose `verifyNonce` and `readState` publicly
2021-03-15 15:20:05 +01:00
Fredrik Adelöw 8686eb38cf Introduce the @backstage/errors package.
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors.

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 14:31:21 +01:00
github-actions[bot] 0e120c5c66 Version Packages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 13:45:44 +01:00
Gowind d44777a802 Expose verifyNonce and readState publicly
Signed-off-by: Gowind <petrovgovind@gmail.com>
2021-03-09 18:33:32 +01:00
dependabot[bot] 7616988312 chore(deps): bump knex from 0.21.18 to 0.95.1
Bumps [knex](https://github.com/knex/knex) from 0.21.18 to 0.95.1.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-08 10:26:45 +01:00
Marcos Lilljedahl 37f9f1a2ee Uses the correct jwks_uri for oidc configuration endpoint
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2021-03-04 12:31:21 -03:00
github-actions[bot] ff2ab4fade Version Packages 2021-03-04 13:11:10 +00:00
Patrik Oldsberg 570d310c90 Merge pull request #4621 from nhidtran/enhancement/4423
Enhancement/4423: remove the usage of res.send() for res.json()
2021-03-01 17:54:09 +01:00
Brian Leathem d9e8713b28 Replaced nock usage in the oidc provider tests with msw 2021-02-26 11:31:25 -08:00
Fredrik Adelöw ebad7dbe99 Merge pull request #4635 from bleathem/oidc-scope
fixed: Expose a configuration option for the oidc scope
2021-02-23 22:08:37 +01:00