Commit Graph

297 Commits

Author SHA1 Message Date
Patrik Oldsberg d31228eb42 Merge pull request #4531 from backstage/rugvip/authref
auth-backend: refactor providers to accept options, and delay profile transforms
2021-02-15 19:44:13 +01:00
Patrik Oldsberg 2046701e96 auth-backend: fix a camel 2021-02-15 17:26:51 +01:00
Patrik Oldsberg d9687c524f auth-backend: fix key timestamp parsing with sqlite 2021-02-14 20:00:21 +01:00
Patrik Oldsberg 65fa16dee4 auth-backend: refactor profile transform to happen within handlers instead of verify callback 2021-02-14 17:38:07 +01:00
Patrik Oldsberg b9709efff8 auth-backend: refactor user profile fetch to transform profile outside 2021-02-13 17:42:14 +01:00
Patrik Oldsberg 10e59af4d0 auth-backend: refactor provider factories to accept options 2021-02-12 14:36:46 +01:00
Nils Streijffert cba94afe17 Merge pull request #4386 from backstage/auth-backend-port-to-luxon
Auth backend port to Luxon
2021-02-11 14:22:30 +01:00
Nils Streijffert 072a960518 Move parseDate function 2021-02-11 10:37:58 +01:00
Nils Streijffert 01700ceccd Prettier fix 2021-02-11 10:30:48 +01:00
Nils Streijffert a107018191 Add line 2021-02-11 10:22:34 +01:00
Nils Streijffert 636c70ac91 Use JS Date instead of Datetime 2021-02-11 10:16:34 +01:00
Patrik Oldsberg 0bc14f2943 Merge pull request #4476 from rmanny/remove-default-scope-oidc
Don't pass default as a scope to OIDC providers
2021-02-10 22:26:51 +01:00
Patrik Oldsberg afa453f744 Merge pull request #4465 from n2ygk/config_oauth_scope
Add configurable OAuth 2.0 scopes
2021-02-10 22:26:30 +01:00
Ryan Manny 9f740b443d Fix line endings 2021-02-10 10:40:44 -08:00
Ryan Manny ca7b66d0a1 Don't pass default as a scope to OIDC providers 2021-02-10 10:29:15 -08:00
Patrik Oldsberg 227a59688a refactor existing usage of ApiContext 2021-02-10 12:06:22 +01:00
Alan Crosswell 07bafa248e Add configurable OAuth 2.0 scopes
- Add oauth2 config for optional scopes
- Document oauth2 config keys
- Add OAuth2 to demo app list of identity providers
2021-02-09 14:50:20 -05:00
Nils Streijffert 529c8501b8 Create utc DateTime object directly 2021-02-08 09:51:57 +01:00
Nils Streijffert f6e56e6cfb Fix prettier formatting 2021-02-04 17:55:00 +01:00
Nils Streijffert b3b90acee7 Changed to fromSQL 2021-02-04 16:49:06 +01:00
Nils Streijffert a816fd2f33 Update DatabaseKeyStore.ts 2021-02-04 15:14:18 +01:00
Nils Streijffert 190f2358fd Update plugins/auth-backend/src/identity/TokenFactory.ts
Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-02-04 15:05:34 +01:00
Nils Streijffert bd29ebb605 Fix tsc, prettier and import issues 2021-02-04 15:02:37 +01:00
Nils Streijffert 306dc12f3a Port moment to luxon 2021-02-04 11:36:40 +01:00
Erik Larsson 124d21c20a Refactor to use context argument 2021-02-03 02:17:35 +01:00
Erik Larsson 1476950a12 Increase code coverage 2021-02-03 02:17:34 +01:00
Erik Larsson 97d13a8889 Use request options 2021-02-03 02:17:34 +01:00
Erik Larsson 3af90e2f46 Fix test 2021-02-03 02:17:34 +01:00
Erik Larsson b3e9b08fd7 tsc 2021-02-03 02:17:34 +01:00
Erik Larsson 0e40a5915d Fix client reference 2021-02-03 02:17:33 +01:00
Erik Larsson be2958d731 CatalogIdentityClient uses CatalogClient 2021-02-03 02:17:33 +01:00
Erik Larsson 570884ece6 Fix linting 2021-02-03 02:17:32 +01:00
Erik Larsson 6ed2b47d60 Add identity token to api requests 2021-02-03 02:17:32 +01:00
Jonah Back 6ddfdca123 fix aws alb auth provider key caching 2021-01-26 16:54:52 -08:00
Jonah Back 4eaa060572 Fix test, add changeset for ALB provider bug fix 2021-01-26 10:54:14 -08:00
Jonah Back f8b652614e fix: change issuer to iss to conform to JWT spec. Make issuer verification optional 2021-01-26 10:50:12 -08:00
Jonah Back 39b05b9ae0 fix: use .text instead of .json for ALB key http call 2021-01-22 15:00:39 -08:00
Patrik Oldsberg 58ff7d986e Merge pull request #3916 from erikxiv/feat/api-auth-backend
Optional identity token authorization of api requests
2021-01-21 13:11:05 +01:00
Patrik Oldsberg 7ae7fc615c auth-backend: revert jose to v3 2021-01-21 12:17:20 +01:00
Jonah Back c837adc23a Address some final review coments about cross-fetch and type-casting 2021-01-19 21:20:49 -08:00
Erik Larsson b798e8b9e8 Refactored as per PR comments 2021-01-20 01:06:34 +01:00
Erik Larsson acaa350fe5 Added more IdentityClient tests 2021-01-19 23:03:43 +01:00
Erik Larsson c2926a6c0c Refactored away from passport into IdentityClient 2021-01-19 23:03:43 +01:00
Erik Larsson 67e60126bb TODO: Extract and add tests to refreshKeyStore 2021-01-19 23:03:13 +01:00
Erik Larsson 4323cc66f9 Added todo on settling user format for authorized users 2021-01-19 23:03:13 +01:00
Erik Larsson 796d1fefbd Fix linting 2021-01-19 23:03:13 +01:00
Erik Larsson a2291d7cc5 Optional identity token authorization of api requests 2021-01-19 23:03:13 +01:00
Jonah Back c43d148556 Fix usage of JOSE library in OIDC test as part of JOSE upgrade 2021-01-18 14:39:53 -08:00
Jonah Back 02140eb89a Add basic node-cache with 1 hour TTL for caching keys retrieved from AWS public key endpoint 2021-01-18 14:25:03 -08:00
Jonah Back 147648a2d1 Update type definition and docs to be clear about experimental status 2021-01-18 14:23:57 -08:00