-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
add Oidc preferred username #3629
add Oidc preferred username #3629
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3629 +/- ##
============================================
- Coverage 50.97% 50.47% -0.51%
- Complexity 2329 2330 +1
============================================
Files 449 451 +2
Lines 14026 14178 +152
Branches 1426 1448 +22
============================================
+ Hits 7150 7156 +6
- Misses 6389 6536 +147
+ Partials 487 486 -1
Continue to review full report at Codecov.
|
For oidc implementation, is it possible to follow the similar implementation of |
it seems impossible because there is no standard way to search users in the oidc scheme. some oidc provider such as keycloak, provided it's custom admin sdk for search users, while others like okta is not even provide a way to search users. |
...lo-client/src/test/java/com/ctrip/framework/apollo/internals/RemoteConfigRepositoryTest.java
Outdated
Show resolved
Hide resolved
...t/java/com/ctrip/framework/apollo/configservice/integration/AbstractBaseIntegrationTest.java
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/CommitController.java
Outdated
Show resolved
Hide resolved
...al/src/main/java/com/ctrip/framework/apollo/portal/controller/NamespaceBranchController.java
Outdated
Show resolved
Hide resolved
...tal/src/main/java/com/ctrip/framework/apollo/portal/controller/ReleaseHistoryController.java
Outdated
Show resolved
Hide resolved
apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/PreferredUsernameUtil.java
Outdated
Show resolved
Hide resolved
apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/PreferredUsernameUtil.java
Outdated
Show resolved
Hide resolved
apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/PreferredUsernameUtil.java
Outdated
Show resolved
Hide resolved
apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/PreferredUsernameUtil.java
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/scripts/directive/directive.js
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/views/component/namespace-panel-master-tab.html
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great effort, it looks much better!
Please find the latest comments below.
...lo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ReleaseHistoryService.java
Outdated
Show resolved
Hide resolved
...main/java/com/ctrip/framework/apollo/portal/service/AdditionalUserInfoEnrichServiceImpl.java
Show resolved
Hide resolved
@@ -284,6 +284,7 @@ CREATE TABLE `Users` ( | |||
`Id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增Id', | |||
`Username` varchar(64) NOT NULL DEFAULT 'default' COMMENT '用户名', | |||
`Password` varchar(64) NOT NULL DEFAULT 'default' COMMENT '密码', | |||
`PreferredUsername` varchar(512) NOT NULL DEFAULT 'default' COMMENT '用户名称', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering is it better to call it UserDisplayName
or simply DisplayName
so that the intention is only for display purpose?
Currently we already have this concept in CtripUserService and LdapUserService:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we agree on this, then we may also update the variable names in the programs. I understand it will cause a big refactoring but I think it's worth to clarify the concept.
…name # Conflicts: # apollo-client/src/test/java/com/ctrip/framework/apollo/internals/RemoteConfigRepositoryTest.java
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
@@ -0,0 +1,22 @@ | |||
package com.ctrip.framework.apollo.portal.enricher; | |||
|
|||
import com.ctrip.framework.apollo.common.dto.BaseDTO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove the unused imports
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceService.java
Outdated
Show resolved
Hide resolved
/** | ||
* @author vdisk <vdisk@foxmail.com> | ||
*/ | ||
public interface UserInfoEnrichedAdapter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This abstraction looks good to me.
@vdisk-group please check your email account (***@foxmail.com), there should be an invitation mail. |
…service/NamespaceService.java Co-authored-by: Jason Song <nobodyiam@gmail.com>
...tal/src/main/java/com/ctrip/framework/apollo/portal/enricher/AdditionalUserInfoEnricher.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
add a human readable username for oidc user
Which issue(s) this PR fixes:
Fixes #3625