-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance authorization and authentication in save-cloud #2336
Comments
CRITICAL thing we have just found:
|
That's why we need to GENERATE a our own SAVE ID for user when he first time register! |
### What's done: - SAVE uses '@' as a special mark to separate user and source #2336 so we cannot use e-mail as login in SAVE by for now
### What's done: - SAVE uses '@' as a special mark to separate user and source #2336 so we cannot use e-mail as login in SAVE by for now
seems, that |
### What's done: - removed headers - removed source in internal communication It closes #2336
### What's done: - removed headers - removed source in internal communication It closes #2336
Also be careful with Basic oauth |
|
### What's done: - small refactoring to hide AuthenticationDetails to get userId and identitySource It's part of #2336
### What's done: - small refactoring to mark name and source are not nullable in database and entity It's part of #2336
### What's done: - small refactoring to hide AuthenticationDetails to get userId and identitySource It's part of #2336
### What's done: - a small refactoring It's part of #2336
For history A&A in save-cloud:Basic auth:
OAUTH2
|
may be add in readme, into some dev guide? |
will do, when finish with this issue |
This comment was marked as duplicate.
This comment was marked as duplicate.
### What's done: - avoid changing Spring's ObjectMapper It's part of #2336
TODO:
BackendService
and receive save's entity\class instead of spring's one to allow to provide IDapi-gateway
andauthentication-service
to pass user's ID from api-gateway instead of second fetch to database inauthentication-service
's logicAuthentication: Basic ***:***
inauthentication-service
-- we can create save's token with required info without checkingReactiveUserDetailsService
. We can try to useorg.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken
. It can be easy to migrate to X.509 authentication in futurecom.saveourtool.save.configs.RequiresAuthorizationSourceHeader
or maybe leave because it's useful for local testingcom.saveourtool.save.configs.ApiSwaggerSupport
, we support oauth2 and basic auth/sec/user
and/api/v1/users/global-role
are not required #2629SaveUserDetails
whenUser
is updated #2633Separator for user and auth provider should be revised
For now we are using
@
for separate the user name and auth provider at least inWebSecurityConfig
and inUserUtils.kt
But this symbol is not the variable and just the hardcoded symbol, so its hard to maintain this functionality
First of all, it should be extracted into the variable in
save-cloud-common
And after this, we probably will need to change
@
to something else, since@
is too dangerous to be a spec symbolThis work should be done under separate issue and very carefully, since it influence on core functionality -
API
application,auth
.integration tests
,db
The text was updated successfully, but these errors were encountered: