Skip to content
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

fix(config-api): user status field changes #8293

Merged
merged 10 commits into from
Apr 13, 2024
18 changes: 9 additions & 9 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8219,19 +8219,19 @@ components:
type: string
selected:
type: boolean
adminCanEdit:
whitePagesCanView:
type: boolean
userCanView:
adminCanEdit:
type: boolean
userCanEdit:
type: boolean
adminCanView:
userCanView:
type: boolean
userCanAccess:
adminCanView:
type: boolean
adminCanAccess:
type: boolean
whitePagesCanView:
userCanAccess:
type: boolean
baseDn:
type: string
Expand Down Expand Up @@ -9053,6 +9053,8 @@ components:
type: boolean
lockMessageConfig:
$ref: '#/components/schemas/LockMessageConfig'
fapi:
type: boolean
allResponseTypesSupported:
uniqueItems: true
type: array
Expand All @@ -9062,8 +9064,6 @@ components:
- code
- token
- id_token
fapi:
type: boolean
AuthenticationFilter:
required:
- baseDn
Expand Down Expand Up @@ -10083,14 +10083,14 @@ components:
type: boolean
internal:
type: boolean
locationPath:
type: string
locationType:
type: string
enum:
- ldap
- db
- file
locationPath:
type: string
baseDn:
type: string
ScriptError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import io.jans.configapi.plugin.mgt.util.MgtUtil;
import io.jans.configapi.util.ApiAccessConstants;
import io.jans.configapi.util.ApiConstants;
import io.jans.model.GluuStatus;
import io.jans.model.SearchRequest;
import io.jans.orm.model.PagedResult;
import io.jans.util.StringHelper;
Expand Down Expand Up @@ -433,7 +434,7 @@ private User setUserAttributes(CustomUser customUser) {
user.setOxAuthPersistentJwt(customUser.getOxAuthPersistentJwt());
user.setUpdatedAt(customUser.getUpdatedAt());
user.setUserId(customUser.getUserId());
user.setStatus(customUser.getStatus());
user.setStatus((customUser.getStatus()!=null?customUser.getStatus() : GluuStatus.ACTIVE));

return setUserCustomAttributes(customUser, user);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"userMandatoryAttributes": [
"mail",
"displayName",
"jansStatus",
"status",
"userPassword",
"givenName"
],
Expand Down