Skip to content

Commit

Permalink
fix(config-api): swagger spec changes for session, properties endpoin…
Browse files Browse the repository at this point in the history
…t and ignoring customobject for non LDAP DB (#2348)

* feat(jans-config-api): spanner paged result issue 2139

* fix(config-api): rectified search filter logic for attribute resource

* fix(config-api): rectified search filter logic for attribute resource

* bug(config-api): swagger spec rectification for session endpoint and custom object changed of non LDAP DB

* feat(config-api): changes for synching change in auth server config for AuthorizationRequestCustomParameter

* feat(config-api): scim plugin change to use jans-scim config classes
  • Loading branch information
pujavs authored Sep 9, 2022
1 parent 7cdd0aa commit c6acaac
Show file tree
Hide file tree
Showing 11 changed files with 110 additions and 333 deletions.
24 changes: 12 additions & 12 deletions jans-config-api/docs/jans-config-api-swagger-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3227,19 +3227,19 @@ components:
$ref: '#/components/schemas/AttributeValidation'
tooltip:
type: string
whitePagesCanView:
adminCanEdit:
type: boolean
userCanAccess:
type: boolean
userCanView:
type: boolean
adminCanView:
type: boolean
adminCanAccess:
type: boolean
adminCanView:
type: boolean
userCanEdit:
type: boolean
adminCanEdit:
whitePagesCanView:
type: boolean
baseDn:
type: string
Expand Down Expand Up @@ -3668,24 +3668,24 @@ components:
type: array
items:
type: string
value:
type: string
displayValue:
type: string
value:
type: string
LocalizedString:
type: object
properties:
values:
type: object
additionalProperties:
type: string
value:
type: string
languageTags:
uniqueItems: true
type: array
items:
type: string
value:
type: string
AppConfiguration:
type: object
properties:
Expand Down Expand Up @@ -4681,13 +4681,13 @@ components:
type: boolean
internal:
type: boolean
locationPath:
type: string
locationType:
type: string
enum:
- ldap
- file
locationPath:
type: string
baseDn:
type: string
ScriptError:
Expand Down Expand Up @@ -5064,10 +5064,10 @@ components:
type: array
items:
type: object
value:
type: object
displayValue:
type: string
value:
type: object
SessionId:
type: object
properties:
Expand Down
23 changes: 18 additions & 5 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2860,7 +2860,7 @@ paths:
description: Returns current session.
operationId: get-sessions
security:
- oauth2: [https://jans.io/oauth/jans-auth-server/session.readonly revoke_session]
- oauth2: [https://jans.io/oauth/jans-auth-server/session.readonly]
tags:
- Auth - Session Management
responses:
Expand Down Expand Up @@ -2892,7 +2892,7 @@ paths:
description: Revoke all sessions by userDn.
operationId: revoke-user-session
security:
- oauth2: [https://jans.io/oauth/jans-auth-server/session.delete]
- oauth2: [https://jans.io/oauth/jans-auth-server/session.delete, revoke_session]
tags:
- Auth - Session Management
responses:
Expand Down Expand Up @@ -5129,7 +5129,7 @@ components:
type: array
description: Authorization Request Custom Allowed Parameters.
items:
type: string
$ref: '#/components/schemas/AuthorizationRequestCustomParameter'
openidScopeBackwardCompatibility:
type: boolean
description: Set to false to only allow token endpoint request for openid scope with grant type equals to authorization_code, restrict access to userinfo to scope openid and only return id_token if scope contains openid.
Expand Down Expand Up @@ -7753,8 +7753,8 @@ components:
description: Session status
type: string
enum:
- authenticated
- unauthenticated
- AUTHENTICATED
- UNAUTHENTICATED
sessionState:
description: state of session.
type: string
Expand Down Expand Up @@ -7788,3 +7788,16 @@ components:
description: Session creation date.
type: string
format: date

AuthorizationRequestCustomParameter:
title: AuthorizationRequestCustomParameter
description: AuthorizationRequestCustomParameter details
type: object
properties:
paramName:
type: string
description: Name of the custom parameter
returnInResponse:
type: boolean
description: indicates if the parameter by default will be returned in response.
default: false
35 changes: 19 additions & 16 deletions jans-config-api/plugins/docs/scim-plugin-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ScimAppConfiguration'
$ref: '#/components/schemas/AppConfiguration'
"401":
description: Unauthorized
"500":
Expand Down Expand Up @@ -58,7 +58,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ScimAppConfiguration'
$ref: '#/components/schemas/AppConfiguration'
"401":
description: Unauthorized
"500":
Expand All @@ -68,16 +68,9 @@ paths:
- https://jans.io/scim/config.write
components:
schemas:
ScimAppConfiguration:
AppConfiguration:
type: object
properties:
maxCount:
type: integer
format: int32
disableJdkLogger:
type: boolean
useLocalCache:
type: boolean
baseDN:
type: string
applicationUrl:
Expand All @@ -90,6 +83,18 @@ components:
type: string
protectionMode:
type: string
enum:
- OAUTH
- BYPASS
maxCount:
type: integer
format: int32
bulkMaxOperations:
type: integer
format: int32
bulkMaxPayloadSize:
type: integer
format: int64
userExtensionSchemaURI:
type: string
loggingLevel:
Expand All @@ -106,12 +111,10 @@ components:
format: int32
metricReporterEnabled:
type: boolean
bulkMaxOperations:
type: integer
format: int32
bulkMaxPayloadSize:
type: integer
format: int64
disableJdkLogger:
type: boolean
useLocalCache:
type: boolean
JsonPatch:
type: object
securitySchemes:
Expand Down
4 changes: 2 additions & 2 deletions jans-config-api/plugins/docs/user-mgt-plugin-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ components:
type: array
items:
type: object
value:
type: object
displayValue:
type: string
value:
type: object
CustomUser:
type: object
properties:
Expand Down
Loading

0 comments on commit c6acaac

Please sign in to comment.