Commit Graph

471 Commits

Author SHA1 Message Date
Fredrik Adelöw 6ca29b66c8 Unbreak .well-known OIDC routes
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-25 21:31:29 +02:00
Fredrik Adelöw 5c2550a6d4 Merge pull request #6085 from backstage/changeset-release/master
Version Packages
2021-06-24 12:37:22 +02:00
github-actions[bot] 5a64fe7ea5 Version Packages 2021-06-24 09:58:38 +00:00
Fredrik Adelöw 8c9002e127 Merge pull request #6169 from backstage/orkohunter/better-error-if-auth-provider-misconfigured
auth: Show better error message if auth provider keys are undefined
2021-06-24 11:52:39 +02:00
Himanshu Mishra 686a740eb9 show better 404 message for unknown provider endpoints
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-24 11:37:49 +02:00
Himanshu Mishra e7b5cf888f remove unnecessary check for missing provider factory
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-24 11:32:57 +02:00
Himanshu Mishra dda7e862a2 remove the "catch-all" auth endpoint and register each separately
200: for properly registered auth providers
404 (with proper message): misconfigured
404 (plain): for unknown providers

Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com>
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-23 15:13:02 +02:00
dependabot[bot] d3b6c6c12a chore(deps): bump msw from 0.21.2 to 0.29.0
Bumps [msw](https://github.com/mswjs/msw) from 0.21.2 to 0.29.0.
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mswjs/msw/compare/v0.21.2...v0.29.0)

---
updated-dependencies:
- dependency-name: msw
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-23 04:45:44 +00:00
Himanshu Mishra d91ec5b1b0 auth: update language
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-22 20:19:58 +02:00
Himanshu Mishra 8e5e5ee46e auth: show better error if auth provider keys are missing
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-06-22 20:16:26 +02:00
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