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
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
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
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
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
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
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
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
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
Brian Leathem
f31e1061ca
Replaced the config jest mock with a ConfigReader in the oidc provider test
2021-02-22 16:39:06 -08:00
Brian Leathem
3af994c81f
Expose a configuration option for the oidc scope
2021-02-22 16:00:31 -08:00
Patrik Oldsberg
ec504e7b4d
auth-backend: fix for refresh token being lost during microsoft login
2021-02-22 17:52:15 +01:00
NHI TRAN
ac67aab5dd
PR updates
...
PR updates
fix failing test
2021-02-22 10:23:26 -05:00
NHI TRAN
e6fe13c675
upstream master
2021-02-21 13:21:37 -05:00
NHI TRAN
f43192207a
enhancement: 4423 switch sending back data from server to res.json() instead of res.send()
...
changeset
2021-02-19 17:05:14 -05:00
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