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-ap): lock audit endpoint parameter declaration error#9460 #9473

Merged
merged 75 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
a3f3a66
fix(config-api): asset mgt endpoint fixes
pujavs Aug 5, 2024
9e309c0
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 5, 2024
59fd269
feat(config-api): asset upload mgt ehancement and fido
pujavs Aug 6, 2024
5a6396a
feat(config-api): asset upload mgt ehancement and fido
pujavs Aug 6, 2024
521f7b1
feat(config-api): asset upload mgt ehancement and fido
pujavs Aug 6, 2024
73618dd
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 6, 2024
583c881
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 7, 2024
95c57e4
fix(config-api): asset upload
pujavs Aug 8, 2024
ca50ec7
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 8, 2024
bbcbc92
fix(config-api): lock review comments
pujavs Aug 8, 2024
2bb92e3
feat(config-api): lock code review comments
pujavs Aug 9, 2024
c900d5f
feat(config-api): lock master renamed to lock server
pujavs Aug 9, 2024
eb62da4
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 9, 2024
6fad621
feat(config-api): lock master renamed to lock server
pujavs Aug 9, 2024
d17d2e6
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 9, 2024
7fefadb
feat(config-api): lock master renamed to lock server
pujavs Aug 9, 2024
cf85c47
feat(config-api): lock master renamed to lock server
pujavs Aug 9, 2024
c0444b5
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 11, 2024
ccf9ace
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 12, 2024
2d4a379
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 12, 2024
dd6555c
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 12, 2024
4696f98
feat(config-api): fido2 delete functionality
pujavs Aug 13, 2024
3b51e0d
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 13, 2024
5af8a00
fix(config-api): acr validation
pujavs Aug 14, 2024
88e3a20
feat(config-api): doc(config-api): IDP schema attribute descriptions …
pujavs Aug 15, 2024
cadc584
feat(config-api): sync with main
pujavs Aug 15, 2024
c4eb118
feat(config-api): sync with main
pujavs Aug 15, 2024
4de3cc0
feat(config-api): uploading assets via API generates 2 entries #9178
pujavs Aug 15, 2024
dfbc4f1
feat(config-api): asset mgt, fido and IDP changes
pujavs Aug 16, 2024
c3ba202
feat(config-api): fido2 device endpoint
pujavs Aug 19, 2024
34d1c9a
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 20, 2024
4473a90
feat(config-api): fido2 endpoint
pujavs Aug 20, 2024
6d974ed
feat(config-api): fido2 endpoint
pujavs Aug 20, 2024
5272c28
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 21, 2024
c6f2234
feat(config-api): sync with main
pujavs Aug 21, 2024
cbc8164
feat(config-api): sync with main
pujavs Aug 21, 2024
8e45ae3
feat(config-api): sync with main
pujavs Aug 21, 2024
d2c8277
feat(config-api): resolved sonar review issues
pujavs Aug 21, 2024
792c81c
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 22, 2024
9dfba84
feat(config-api): sonar review comment fix
pujavs Aug 22, 2024
54b2f59
feat(config-api): swagger spec
pujavs Aug 22, 2024
8d92097
feat(config-api): swagger spec
pujavs Aug 22, 2024
e078be2
feat(config-api): saml config attribute description
pujavs Aug 22, 2024
b7eac33
doc(config-api): added SAML attribute description
pujavs Aug 23, 2024
1fd93d8
doc(config-api): added SAML attribute description
pujavs Aug 23, 2024
28fed18
feat(config-api): sync with main
pujavs Aug 26, 2024
0d05fb6
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 27, 2024
573e47e
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Aug 30, 2024
4590a55
feat(config-api): sync with main
pujavs Aug 30, 2024
cd764d6
fix(jans-lock): code review comment fix isssue#9305
pujavs Aug 30, 2024
d4e4c41
fix(jans-lock): code review comment fix isssue#9305
pujavs Aug 30, 2024
07ca449
feat(config-api): lock review point
pujavs Sep 2, 2024
2e98591
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 3, 2024
a513d11
fix(lock): code review comment
pujavs Sep 3, 2024
7e86521
fix(lock): code review comment
pujavs Sep 3, 2024
db7f37d
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 4, 2024
f1c1c29
fix(config-api): sync with main
pujavs Sep 4, 2024
77c5d46
feat(config-api): lock endpoint fixes and SAML IDP NPE
pujavs Sep 5, 2024
e00453b
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 5, 2024
89e16ee
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 6, 2024
39a8321
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 6, 2024
43323bf
feat(config-api): asset enhancement
pujavs Sep 9, 2024
7de3f99
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 9, 2024
e982673
feat(config-api): implement timer for asset mgt to fetch and deploy a…
pujavs Sep 9, 2024
fb95955
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 9, 2024
ec1eb27
fix(config-api): scope validation issue #9426
pujavs Sep 9, 2024
847b024
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 10, 2024
eac818b
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 10, 2024
ea2479f
fix(config-api): asset delete error fix
pujavs Sep 10, 2024
9a5b999
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 10, 2024
4b0b0b8
feat(config-api): sysnc with main
pujavs Sep 11, 2024
c8121e9
feat(config-api): sysnc with main
pujavs Sep 11, 2024
41104fc
Merge branch 'main' of https://github.com/JanssenProject/jans into ja…
pujavs Sep 12, 2024
17d91eb
fix(config-ap): lock audit endpoint parameter declaration error#9460
pujavs Sep 12, 2024
8058ab9
Merge branch 'main' into jans-config-fix
yuriyz Sep 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(config-api): doc(config-api): IDP schema attribute descriptions #…
…9187

Signed-off-by: pujavs <pujas.works@gmail.com>
  • Loading branch information
pujavs committed Aug 15, 2024
commit 88e3a20ba9141b0d7487daeeec62d71e8cd70e72
8 changes: 4 additions & 4 deletions jans-config-api/docs/jans-config-api-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8363,14 +8363,14 @@ components:
type: boolean
whitePagesCanView:
type: boolean
userCanEdit:
type: boolean
adminCanEdit:
type: boolean
adminCanView:
type: boolean
userCanView:
type: boolean
userCanEdit:
type: boolean
adminCanAccess:
type: boolean
userCanAccess:
Expand Down Expand Up @@ -10353,14 +10353,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
40 changes: 40 additions & 0 deletions jans-config-api/plugins/docs/kc-saml-plugin-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -886,82 +886,122 @@ components:
type: string
inum:
type: string
description: Unique identifier.
creatorId:
type: string
description: Creator of IDP.
name:
type: string
description: Name uniquely identifies an identity provider.
displayName:
maxLength: 60
minLength: 0
type: string
description: Identity provider display name.
description:
maxLength: 500
minLength: 0
type: string
description: Description of Identity provider.
realm:
type: string
description: Realm in which Identity provider is created.
enabled:
type: boolean
description: Indicates if Identity provider is enabled.
signingCertificate:
type: string
description: Digital certificate used to verify the authenticity of the
request.
validateSignature:
type: string
singleLogoutServiceUrl:
type: string
description: Url used to send logout requests.
nameIDPolicyFormat:
type: string
description: ' URI reference corresponding to a name identifier format.'
principalAttribute:
type: string
description: ' Name or Friendly Name of the attribute used to identify external
users.'
principalType:
type: string
description: Way to identify and track external users from the assertion.
idpEntityId:
type: string
description: Entity ID that will be used to uniquely identify this SAML
Service Provider.
singleSignOnServiceUrl:
type: string
description: Url used to send SAML authentication requests.
encryptionPublicKey:
type: string
description: Public key to use to encrypt the message.
providerId:
type: string
description: "IDP provider, should be SAML."
trustEmail:
type: boolean
description: "If enabled, email provided by this provider is not verified\
\ even if verification is enabled for the realm."
storeToken:
type: boolean
description: Enable/disable if tokens must be stored after authenticating
users.
addReadTokenRoleOnCreate:
type: boolean
description: Enable/disable if new users can read any stored tokens.
authenticateByDefault:
type: boolean
linkOnly:
type: boolean
description: "If true, users cannot log in through this provider. They can\
\ only link to this provider."
firstBrokerLoginFlowAlias:
type: string
description: "Alias of authentication flow, which is triggered after first\
\ login with this identity provider. Term 'First Login' means that no\
\ Keycloak account is currently linked to the authenticated identity provider\
\ account."
postBrokerLoginFlowAlias:
type: string
description: "Alias of authentication flow, which is triggered after each\
\ login with this identity provider."
spMetaDataURL:
type: string
description: SAML SP metadata file URL.
spMetaDataLocation:
type: string
description: SP metadata file location.
idpMetaDataURL:
type: string
description: SAML IDP metadata file URL.
idpMetaDataLocation:
type: string
description: SAML IDP metadata file location.
status:
type: string
description: IDP setup status.
enum:
- active
- inactive
- expired
- register
validationStatus:
type: string
description: IDP validation status.
enum:
- In Progress
- Success
- Scheduled
- Failed
validationLog:
type: array
description: IDP validation log.
items:
type: string
description: IDP validation log.
baseDn:
type: string
IdentityProviderPagedResult:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,118 +22,150 @@
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;

@DataEntry(sortBy = { "displayName" })
@ObjectClass(value = "jansTrustedIdp")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class IdentityProvider extends Entry implements Serializable {

@AttributeName(ignoreDuringUpdate = true)
@Schema(description = "Unique identifier.")
private String inum;

@NotNull
@AttributeName
@Schema(description = "Creator of IDP.")
private String creatorId;

@NotNull
@AttributeName(name = "name")
@Schema(description = "Name uniquely identifies an identity provider.")
private String name;

@NotNull
@Size(min = 0, max = 60, message = "Length of the Display Name should not exceed 60")
@AttributeName
@Schema(description = "Identity provider display name.")
private String displayName;

@NotNull
@Size(min = 0, max = 500, message = "Length of the Description should not exceed 500")
@AttributeName
@Schema(description = "Description of Identity provider.")
private String description;

@NotNull
@AttributeName(name = "realm")
@Schema(description = "Realm in which Identity provider is created.")
private String realm;

@AttributeName(name = "jansEnabled")
@Schema(description = "Indicates if Identity provider is enabled.")
private boolean enabled;

@AttributeName(name = "signingCertificate")
@Schema(description = "Digital certificate used to verify the authenticity of the request.")
private String signingCertificate;

@AttributeName(name = "validateSignature")
private String validateSignature;

@AttributeName(name = "singleLogoutServiceUrl")
@Schema(description = "Url used to send logout requests.")
private String singleLogoutServiceUrl;

@AttributeName(name = "nameIDPolicyFormat")
@Schema(description = " URI reference corresponding to a name identifier format.")
private String nameIDPolicyFormat;

@AttributeName(name = "principalAttribute")
@Schema(description = " Name or Friendly Name of the attribute used to identify external users.")
private String principalAttribute;

@AttributeName(name = "principalType")
@Schema(description = "Way to identify and track external users from the assertion.")
private String principalType;

@AttributeName(name = "entityId")
@Schema(description = "Entity ID that will be used to uniquely identify this SAML Service Provider.")
private String idpEntityId;

@AttributeName(name = "singleSignOnServiceUrl")
@Schema(description = "Url used to send SAML authentication requests.")
private String singleSignOnServiceUrl;

@AttributeName(name = "encryptionPublicKey")
@Schema(description = "Public key to use to encrypt the message.")
private String encryptionPublicKey;

@AttributeName
@Schema(description = "IDP provider, should be SAML.")
private String providerId;

@AttributeName
@Schema(description = "If enabled, email provided by this provider is not verified even if verification is enabled for the realm.")
private boolean trustEmail;

@AttributeName
@Schema(description = "Enable/disable if tokens must be stored after authenticating users.")
private boolean storeToken;

@AttributeName
@Schema(description = "Enable/disable if new users can read any stored tokens.")
private boolean addReadTokenRoleOnCreate;

@AttributeName
@Deprecated
private boolean authenticateByDefault;

@AttributeName
@Schema(description = "If true, users cannot log in through this provider. They can only link to this provider.")
private boolean linkOnly;

@AttributeName
@Schema(description = "Alias of authentication flow, which is triggered after first login with this identity provider. Term 'First Login' means that no Keycloak account is currently linked to the authenticated identity provider account.")
private String firstBrokerLoginFlowAlias;

@AttributeName
@Schema(description = "Alias of authentication flow, which is triggered after each login with this identity provider.")
private String postBrokerLoginFlowAlias;

@AttributeName(name = "jansSAMLspMetaDataFN")
@Hidden
private String spMetaDataFN;

@AttributeName(name = "jansSAMLspMetaDataURL")
@Schema(description = "SAML SP metadata file URL.")
private String spMetaDataURL;

@AttributeName(name = "jansSAMLspMetaLocation")
@Schema(description = "SP metadata file location.")
private String spMetaDataLocation;

@AttributeName(name = "jansSAMLidpMetaDataFN")
@Hidden
private String idpMetaDataFN;

@AttributeName(name = "jansSAMLidpMetaDataURL")
@Schema(description = "SAML IDP metadata file URL.")
private String idpMetaDataURL;

@AttributeName(name = "jansSAMLidpMetaLocation")
@Schema(description = "SAML IDP metadata file location.")
private String idpMetaDataLocation;

@AttributeName(name = "jansStatus")
@Schema(description = "IDP setup status.")
private GluuStatus status;

@AttributeName(name = "jansValidationStatus")
@Schema(description = "IDP validation status.")
private ValidationStatus validationStatus;

@AttributeName(name = "jansValidationLog")
@Schema(description = "IDP validation log.")
private List<String> validationLog;

public String getInum() {
Expand Down