Fredrik Adelöw
7573b65232
get rid of circular imports
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-10-25 11:00:05 +02:00
huansong.tang
f3a3fefb96
Fix permissions API to return 401 instead of 500 when IdentityApi.getIdentity throws an error
...
Signed-off-by: huansong.tang <huansong.tang@grabtaxi.com >
2022-10-12 11:03:08 +08:00
Brian Fletcher
4925dfcb74
Merge branch 'master' of github.com:backstage/backstage into RoadieHQ-5identity-api-client-interface
2022-08-31 11:19:34 +01:00
Brian Fletcher
ec74f25794
fix test
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-08-25 15:54:24 +01:00
Brian Fletcher
ed92f732a1
default id provider surface NotAllowedError
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-08-25 15:42:59 +01:00
Fredrik Adelöw
9212439d15
just some more use of setupRequestMockHandlers
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-24 11:26:12 +02:00
Brian Fletcher
d102f14f9e
fix some review comments
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-08-23 16:55:16 +01:00
Brian Fletcher
90223b820b
adding express.Request back to interface
...
I tried to use the node-fetch request, however the express handlers
appear to be passing down express.Request so its seems to be the right
choice.
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-08-16 12:00:06 +01:00
Brian Fletcher
518e5ddcd1
addressing some code review comments
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-08-15 14:51:27 +01:00
Brian Fletcher
2cbd533426
break identity client into an interface
...
The interface has changed a little instead of allowing the client to
parse out the authorization header, it takes the request object as is
to extract the identity from it how the implementation decides.
IdentityClient#authenticate is now deprecated, in favor of
IdentityApi#getIdentity.
I am leaving the IdentityClient in place deprecated so that plugins
that use this can migrate away from it.
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-07-08 16:56:23 +01:00
Fredrik Adelöw
5ca0b86b88
always create a keystore
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-06-13 14:53:45 +02:00
Manuel Scurti
46eb655650
fixed api reports
...
Signed-off-by: Manuel Scurti <manuel.scurti@agilelab.it >
2022-05-18 18:14:03 +02:00
Manuel Scurti
9079a78078
algorithms field is now array for IdentityClient
...
Signed-off-by: Manuel Scurti <manuel.scurti@agilelab.it >
2022-05-18 11:31:29 +02:00
Manuel Scurti
f6aae90e4e
Added configurable signing algorithm
...
Signed-off-by: Manuel Scurti <manuel.scurti@agilelab.it >
2022-05-17 19:40:15 +02:00
Andy Caruso
a7bc5b09f9
Remove keystore creation from constructor
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:50:21 +02:00
Andy Caruso
999eb151f1
Update public key URL when key lookup fails and mutex dev key
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:50:21 +02:00
Andy Caruso
d253d46ba9
Clean up as per review comments
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:49:27 +02:00
Andy Caruso
cbe119efa6
Correct handling of claim entities
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:49:27 +02:00
Andy Caruso
504f5939ed
Correct test constructor
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:49:27 +02:00
Andy Caruso
ef8df1948c
Remove cooldown parameter option
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:49:27 +02:00
Andy Caruso
a1d373170b
Add API report docs
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:49:23 +02:00
Andy Caruso
1624b52168
Update jose to 4.6.0
...
Signed-off-by: Andy Caruso <macaruso@gmail.com >
2022-04-18 23:46:42 +02:00
Patrik Oldsberg
15d3a3c39a
auth-node,auth-backend: remove deprecated identity result fields
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-03-17 23:03:12 +01:00
Fredrik Adelöw
3c9aed1b16
review comments
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-02-10 10:36:45 +01:00
Fredrik Adelöw
bf5222bfa1
moved over IdentityClient as well
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-02-09 19:32:59 +01:00
Fredrik Adelöw
86b40d464f
move over BackstageSignInResult, BackstageIdentityResponse, BackstageUserIdentity
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-02-09 17:10:18 +01:00
Fredrik Adelöw
b3f3e42036
move IdentityClient.getBearerToken
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-02-09 10:38:12 +01:00
Fredrik Adelöw
9058bb1b5e
add empty @backstage/plugin-auth-node
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-02-09 10:23:07 +01:00