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

Merge develop to master #1577

Merged
merged 118 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 88 commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
b59f7ad
Bump org.bouncycastle:bcprov-jdk18on from 1.77 to 1.78
dependabot[bot] Apr 8, 2024
1bf5671
Fix #1321: Set develop version to 1.8.0-SNAPSHOT
banterCZ Apr 8, 2024
9454b8c
Merge pull request #1452 from wultra/issues/1321-version-1.8.0-SNAPSHOT
banterCZ Apr 8, 2024
22f1c03
Merge pull request #1449 from wultra/dependabot/maven/org.bouncycastl…
dependabot[bot] Apr 8, 2024
82f95ae
Fix #1453: DocuCheck Warnings
banterCZ Apr 11, 2024
7782a58
Merge pull request #1454 from wultra/issues/1453-doc-warnings
banterCZ Apr 12, 2024
30cb8b0
Fix #1456: Documentation for Monitoring and Observability not Rendere…
jandusil Apr 12, 2024
0cd73fd
Fix #1438: powerauth-client-model classes are duplicated in powerauth…
banterCZ Apr 15, 2024
5ba9f68
Disable CodeQL GitHub Action on pull requests
banterCZ Apr 15, 2024
7cfbae3
Fix #1458: FIDO2: Concat operation data to credentialId (#1460)
jnpsk Apr 15, 2024
765c794
Merge pull request #1459 from wultra/issues/limit-codeql
banterCZ Apr 16, 2024
e3c94e8
Fix #1464: Improve the error message for RP ID mismatch (#1465)
petrdvorak Apr 17, 2024
2214395
Fix #1437: Change ActivationRecordEntity#protocol into enum (#1463)
banterCZ Apr 18, 2024
2c873a2
Fix failing OperationTemplateServiceBehaviorTest (#1466)
banterCZ Apr 18, 2024
c0230c8
Fix #1461: Implement proper sanitization of credential ID (#1462)
petrdvorak Apr 18, 2024
267d08b
Fix #1468: Improve performance of deleting values in table pa_unique_…
romanstrobl Apr 18, 2024
0b9ab03
Bump org.bouncycastle:bcprov-jdk18on from 1.78 to 1.78.1
dependabot[bot] Apr 22, 2024
123edd4
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Apr 22, 2024
d429335
Bump org.apache.commons:commons-text from 1.11.0 to 1.12.0
dependabot[bot] Apr 22, 2024
77c0819
Merge pull request #1475 from wultra/dependabot/maven/org.apache.comm…
dependabot[bot] Apr 22, 2024
db2a1b9
Merge pull request #1474 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Apr 22, 2024
f49971c
Merge pull request #1473 from wultra/dependabot/maven/org.bouncycastl…
dependabot[bot] Apr 22, 2024
0efaa5a
Fix #1399: Validate activation ID when creating operation (#1470)
banterCZ Apr 22, 2024
3d5fb71
Fix #1478: Update Wultra dependencies
banterCZ Apr 22, 2024
ca71a81
Merge pull request #1479 from wultra/issues/1478-wultra-dependencies
banterCZ Apr 22, 2024
354043a
Update the minimal version of WildFly to 27 to support Spring Boot 3
banterCZ Apr 23, 2024
64bfaa5
Merge pull request #1481 from wultra/issues/1480-wildfly-version
banterCZ Apr 26, 2024
dfba914
Fix #1483: Revise Migration Documentation for additionalData Field Co…
jandusil Apr 29, 2024
99c6cec
Fix #1480: Improve WildFly documentation and configuration (#1486)
banterCZ May 2, 2024
a8c56d2
Fix #1476: Refactor BouncyCastle dependency (#1477)
banterCZ May 2, 2024
238fc80
Fix #1502: FIDO2: Return excludeCredentials in RegistrationChallenge …
jnpsk May 3, 2024
b92869e
Fix #1505: Edit scp-deploy workflow to use internal repo (#1506)
jnpsk May 3, 2024
1c1d8d3
Bump com.webauthn4j:webauthn4j-test
dependabot[bot] May 6, 2024
c499748
Merge pull request #1509 from wultra/dependabot/maven/com.webauthn4j-…
dependabot[bot] May 6, 2024
f7c3b71
Fix #1508: Validate ValidateTokenRequest#protocolVersion parameter
banterCZ May 7, 2024
fc1fbf9
Merge pull request #1511 from wultra/issues/1508-protocolVersion-migr…
banterCZ May 7, 2024
d30959e
Fix #1482: Optimization: Operation expiration optimization (#1510)
jnpsk May 7, 2024
71ff0e1
Fix #1472: Investigate @Scheduled methods with @Transactional annotation
banterCZ May 9, 2024
70d8ff0
Merge pull request #1512 from wultra/issues/1472-scheduled-transactional
banterCZ May 10, 2024
645a0f6
Fix #1514: Superfluous combination of Date and Instance
banterCZ May 10, 2024
cfa5c79
Merge pull request #1515 from wultra/issues/1514-date-instant
banterCZ May 13, 2024
06c6571
Add dependabot configuration for github-actions
banterCZ May 16, 2024
cb25c0f
Merge pull request #1518 from wultra/issues/dependabot-gha
banterCZ May 16, 2024
458ba07
Bump io.swagger.core.v3:swagger-annotations-jakarta
dependabot[bot] May 16, 2024
8c13d85
Merge pull request #1519 from wultra/dependabot/maven/io.swagger.core…
dependabot[bot] May 16, 2024
706ca4f
Fix #1517: FIDO2: Enforce USB transport hint for WAU authenticators (…
jnpsk May 22, 2024
fa553fc
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] May 27, 2024
36bdb46
Merge pull request #1525 from wultra/dependabot/maven/org.springframe…
dependabot[bot] May 27, 2024
7a58ff6
Fix #1526: Improve logging of TOKEN_TIMESTAMP_TOO_IN_FUTURE
banterCZ May 27, 2024
156718b
Merge pull request #1527 from wultra/issues/1526-improve-logging
banterCZ May 28, 2024
d66f88f
Fix #1529: FIDO2: Missing external ID in activation
romanstrobl May 28, 2024
47bdb6a
Merge pull request #1530 from wultra/issues/1529-missing-external-id-…
romanstrobl May 28, 2024
a1ce552
Fix #1539: Invalid import for Arrays
romanstrobl May 30, 2024
1daf140
Fix #1541: Name Hikari Pool
banterCZ May 30, 2024
fd0485e
Merge pull request #1540 from wultra/issues/1539-arrays-import
romanstrobl May 30, 2024
3cdaea7
Merge pull request #1542 from wultra/issues/1541-hikari-pool-name
banterCZ May 31, 2024
1ddcdfc
Fix #1528: Add STATUS_REASON to operations for Cancel of the operatio…
banterCZ May 31, 2024
b496cb7
Bump org.springframework.cloud:spring-cloud-starter-vault-config
dependabot[bot] Jun 3, 2024
4a1c4d4
Bump com.webauthn4j:webauthn4j-test
dependabot[bot] Jun 3, 2024
d2672d4
Merge pull request #1546 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jun 3, 2024
b7b9344
Merge pull request #1547 from wultra/dependabot/maven/com.webauthn4j-…
dependabot[bot] Jun 3, 2024
b365837
Fix #534: Break down the RESTful API controller (#1534)
petrdvorak Jun 3, 2024
75c6510
Fix #1548: Refactor ErrorCodeBehavior to stream API
banterCZ Jun 3, 2024
6813bdb
Merge pull request #1549 from wultra/issues/1548-stream-api
banterCZ Jun 3, 2024
5c8ce5f
Fix #1538: DB migration issue (MS SQL, possible Oracle) (#1543)
banterCZ Jun 3, 2024
bcb60de
Merge pull request #1550 from wultra/issues/1538-mssql-default-value
banterCZ Jun 3, 2024
527074b
Fix #1535: Use Lombok Getter and Setter in Entities (#1553)
banterCZ Jun 4, 2024
e17f6f6
Fix #1560: Create Operation does not return proximity OTP (#1561)
banterCZ Jun 5, 2024
7209058
Fix #1564: Missing signature version in vault unlock mapping (#1565)
petrdvorak Jun 5, 2024
ee76ddb
Fix #1566: VerifyECDSASignature returns bad request for non existing …
banterCZ Jun 6, 2024
b15c8d0
Merge pull request #1567 from wultra/issues/1566-VerifyECDSASignature…
banterCZ Jun 6, 2024
203069d
Fix JSON (de)serialization of VerifyECDSASignatureResponse
banterCZ Jun 6, 2024
12b25c4
Merge pull request #1568 from wultra/issues/1566-VerifyECDSASignature…
banterCZ Jun 6, 2024
e27dcb5
Fix #1569: Missing timeout options for PowerAuth REST clients
banterCZ Jun 10, 2024
f791b91
Merge pull request #1570 from wultra/issues/1569-rest-client-timeouts
banterCZ Jun 11, 2024
e9a8443
Fix #1571: Use Lombok Getter and Setter for RestClientConfiguration
banterCZ Jun 11, 2024
f6314b0
Merge pull request #1572 from wultra/issues/1571-lombok-rest-client-c…
banterCZ Jun 11, 2024
bb0f658
Fix How-To generate SQL from Liquibase for PostgreSQL
banterCZ Jun 20, 2024
2823f7f
Merge pull request #1573 from wultra/issues/fix-postgres-liquibase-doc
banterCZ Jun 20, 2024
8b46b9e
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Jun 21, 2024
28d502c
Merge pull request #1574 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jun 21, 2024
62bde32
Fix #1552: Enable to lookup the userId if operation is created with a…
banterCZ Jun 24, 2024
a4d8949
Document pa_fido2_authenticator.transports
banterCZ Jun 25, 2024
46e9398
Merge pull request #1580 from wultra/issues/1517-doc-pa_fido2_authent…
banterCZ Jun 25, 2024
58609c7
Remove commented out code
banterCZ Jun 25, 2024
fde64ea
Merge pull request #1581 from wultra/issues/534-commented-out-code
banterCZ Jun 25, 2024
418c56d
Remove superfluous transactional annotation
banterCZ Jun 25, 2024
ca70d2f
Merge pull request #1582 from wultra/issues/1472-transactional-scheduled
banterCZ Jun 25, 2024
78af600
Fix #1584: Add liquibase tag 1.8.0
banterCZ Jun 25, 2024
3635aa5
Bump org.springdoc:springdoc-openapi-starter-webmvc-ui
dependabot[bot] Jul 1, 2024
62c48e8
Bump com.webauthn4j:webauthn4j-test
dependabot[bot] Jul 8, 2024
b65ab37
Fix #1590: Missing signatureVersion attribute in API documentation (#…
petrdvorak Jul 11, 2024
91855d2
Bump org.springframework.cloud:spring-cloud-starter-vault-config
dependabot[bot] Jul 15, 2024
9e0cfd0
Merge pull request #1594 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jul 15, 2024
ab421dd
Merge pull request #1587 from wultra/dependabot/maven/com.webauthn4j-…
dependabot[bot] Jul 15, 2024
29a4bcf
Merge pull request #1586 from wultra/dependabot/maven/org.springdoc-s…
dependabot[bot] Jul 15, 2024
ddf8c32
Fix #1532: Add lockAtLeastFor to the scheduler configuration
banterCZ Jul 16, 2024
7501ace
Merge pull request #1597 from wultra/issues/1532-lockAtLeastFor
banterCZ Jul 16, 2024
19feda3
Fix #1375: Allow fetching assertion challenge related to existing ope…
banterCZ Jul 18, 2024
a314ed1
Remove scheduler lock from Fido2CleaningTask
banterCZ Jul 18, 2024
7fea4d8
Merge pull request #1601 from wultra/issues/1532-remove-scheduler-lock
banterCZ Jul 18, 2024
4859fb9
Fix #1603: Schema diagram how to (#1604)
jnpsk Jul 19, 2024
cf133b7
Bump org.springframework.boot:spring-boot-starter-parent
dependabot[bot] Jul 22, 2024
56aaa29
Merge pull request #1605 from wultra/dependabot/maven/org.springframe…
dependabot[bot] Jul 22, 2024
d05efea
Fix #1523: Data escaping in operation template
banterCZ Jul 22, 2024
cafed8c
Fix #1592: Implement procedure sp_getapplock for locking activations …
romanstrobl Jul 23, 2024
d2868af
Fix #1610: Remove schema creation form Database-Structure.md
banterCZ Jul 23, 2024
af3fd5f
Merge pull request #1611 from wultra/issues/1610-remove-schema
banterCZ Jul 23, 2024
a75b6d2
Merge pull request #1606 from wultra/issues/1523-data-escaping
banterCZ Jul 24, 2024
8d09fc1
Fix OperationServiceBehaviorTest
banterCZ Jul 24, 2024
7209ff5
Fix #1607: Extract common code into EncryptionService
banterCZ Jul 23, 2024
fda014f
Merge pull request #1612 from wultra/issues/1606-fix-test
banterCZ Jul 24, 2024
30f5c93
Merge pull request #1608 from wultra/issues/1607-encryption-service
banterCZ Jul 24, 2024
6bdb7ff
Fix #1615: Get recovery configuration fails
banterCZ Jul 25, 2024
5f19827
Merge pull request #1616 from wultra/issues/1615-recovery-transaction
banterCZ Jul 25, 2024
ee510e5
Merge pull request #1585 from wultra/issues/1584-liquibase-tag
banterCZ Jul 26, 2024
0829556
Avoid deadlock during expiration of operations (#1621)
romanstrobl Jul 26, 2024
2bbe65f
Fix #1578: Set release version to 1.8.0 (#1583)
banterCZ Jul 26, 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
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"
schedule:
interval: "weekly"
3 changes: 0 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
push:
branches: [ 'develop', 'master', 'releases/**' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ 'develop', 'master', 'releases/**' ]
schedule:
- cron: '0 2 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
cache: maven
- name: Run Maven Package Step
run: |
mvn -B -U package -Dmaven.test.skip=true
mvn -B -U package -Dmaven.test.skip=true -DuseInternalRepo=true
env:
INTERNAL_USERNAME: ${{ secrets.JFROG_USERNAME }}
INTERNAL_PASSWORD: ${{ secrets.JFROG_PASSWORD }}
Expand Down
17 changes: 17 additions & 0 deletions docs-private/Developer-How-To-Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,28 @@ liquibase --changelog-file=./docs/db/changelog/changesets/powerauth-java-server/

To generate SQL script run this command.


#### Oracle

```shell
liquibase --changeLogFile=./docs/db/changelog/changesets/powerauth-java-server/db.changelog-module.xml --output-file=./docs/sql/oracle/generated-oracle-script.sql updateSQL --url=offline:oracle
```


#### MS SQL

```shell
liquibase --changeLogFile=./docs/db/changelog/changesets/powerauth-java-server/db.changelog-module.xml --output-file=./docs/sql/mssql/generated-mssql-script.sql updateSQL --url=offline:mssql
```


#### PostgreSQL

```shell
liquibase --changeLogFile=./docs/db/changelog/changesets/powerauth-java-server/db.changelog-module.xml --output-file=./docs/sql/postgresql/generated-postgresql-script.sql updateSQL --url=offline:postgresql
```


## PowerAuth Admin Server


Expand Down
2 changes: 1 addition & 1 deletion docs/Admin-Deploying-Wildfly.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PowerAuth Admin contains the following configuration in `jboss-deployment-struct

```xml
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.3">
<deployment>
<exclude-subsystems>
<!-- disable the logging subsystem because the application manages its own logging independently -->
Expand Down
4 changes: 4 additions & 0 deletions docs/Configuration-Properties-Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ The PowerAuth Admin application uses the following public configuration properti

## Monitoring and Observability

| Property | Default | Note |
|-------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `management.tracing.sampling.probability` | `1.0` | Specifies the proportion of requests that are sampled for tracing. A value of 1.0 means that 100% of requests are sampled, while a value of 0 effectively disables tracing. |

The WAR file includes the `micrometer-registry-prometheus` dependency.
Discuss its configuration with the [Spring Boot documentation](https://docs.spring.io/spring-boot/docs/3.1.x/reference/html/actuator.html#actuator.metrics).
2 changes: 2 additions & 0 deletions docs/Configuration-Properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ The PowerAuth Server uses the following public configuration properties:


## Monitoring and Observability

| Property | Default | Note |
|-------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `management.tracing.sampling.probability` | `1.0` | Specifies the proportion of requests that are sampled for tracing. A value of 1.0 means that 100% of requests are sampled, while a value of 0 effectively disables tracing. |
Expand All @@ -82,6 +83,7 @@ Discuss its configuration with the [Spring Boot documentation](https://docs.spri
| Property | Default | Note |
|-----------------------------------------------------------------------------|-----------|----------------------------------------------------------------------------------------------------|
| `powerauth.service.scheduled.job.operationCleanup` | `5000` | Time delay in milliseconds between two consecutive tasks that expire long pending operations. |
| `powerauth.service.scheduled.job.expireOperationsLimit` | `100` | Number of long pending operations that will be set expired in single scheduled job run. |
| `powerauth.service.scheduled.job.activationsCleanup` | `5000` | Time delay in milliseconds between two consecutive tasks that expire abandoned activations. |
| `powerauth.service.scheduled.job.activationsCleanup.lookBackInMilliseconds` | `3600000` | Number of milliseconds to look back in the past when looking for abandoned activations. |
| `powerauth.service.scheduled.job.uniqueValueCleanup` | `60000` | Time delay in milliseconds between two consecutive tasks that delete expired unique values. |
Expand Down
42 changes: 23 additions & 19 deletions docs/Database-Structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ CREATE TABLE pa_activation
device_info VARCHAR(255),
flags VARCHAR(255),
external_id VARCHAR(255),
protocol VARCHAR(32) DEFAULT 'powerauth',
protocol VARCHAR(32) DEFAULT 'powerauth' NOT NULL,
failed_attempts INTEGER NOT NULL,
max_failed_attempts INTEGER DEFAULT 5 NOT NULL,
server_private_key_base64 VARCHAR(255) NOT NULL,
Expand Down Expand Up @@ -519,6 +519,7 @@ CREATE TABLE pa_operation (
parameters TEXT,
additional_data TEXT,
status INTEGER NOT NULL,
status_reason VARCHAR(32),
signature_type VARCHAR(255) NOT NULL,
failure_count BIGINT DEFAULT 0 NOT NULL,
max_failure_count BIGINT NOT NULL,
Expand All @@ -532,24 +533,25 @@ CREATE TABLE pa_operation (

#### Columns

| Name | Type | Info | Note |
|---------------------|--------------|-------------|-------------------------------------------------------------------------------------------------|
| id | varchar(37) | primary key | Unique operation ID. |
| user_id | varchar(255) | - | Related user ID. |
| template_id | bigint | - | Template ID used for creating the operation. |
| external_id | varchar(255) | - | Identifier in external system. |
| operation_type | varchar(255) | - | Name of the type of operation. |
| data | text | - | Data of the operation that enter the final signature. |
| parameters | text | - | JSON-encoded parameters that were used while creating the operation. |
| status | integer | - | Status of the operation. |
| signature_type | varchar(255) | - | Comma-separated list of allowed signature types. |
| failure_count | bigint | - | Number of already failed attempts to approve the operation. |
| max_failure_count | bigint | - | Maximum allowed number of failed attempts when approving the operation. |
| timestamp_created | timestamp | - | Timestamp of when the operation was created. |
| timestamp_expires | timestamp | - | Timestamp of when the operation will expire. |
| timestamp_finalized | timestamp | - | Timestamp of when the operation reached the terminal state (approved, rejected, expired, etc.). |
| risk_flages | varchar(255) | - | Risk flags for offline QR code. Uppercase letters without separator, e.g. `XFC`. |
| totp_seed | varchar(24) | - | Optional TOTP seed used for proximity check, base64 encoded. |
| Name | Type | Info | Note |
|---------------------|--------------|-------------|----------------------------------------------------------------------------------------------------------------------------------|
| id | varchar(37) | primary key | Unique operation ID. |
| user_id | varchar(255) | - | Related user ID. |
| template_id | bigint | - | Template ID used for creating the operation. |
| external_id | varchar(255) | - | Identifier in external system. |
| operation_type | varchar(255) | - | Name of the type of operation. |
| data | text | - | Data of the operation that enter the final signature. |
| parameters | text | - | JSON-encoded parameters that were used while creating the operation. |
| status | integer | - | Status of the operation. |
| status_reason | varchar(32) | - | Optional details why the status changed. The value should be sent in the form of a computer-readable code, not a free-form text. |
| signature_type | varchar(255) | - | Comma-separated list of allowed signature types. |
| failure_count | bigint | - | Number of already failed attempts to approve the operation. |
| max_failure_count | bigint | - | Maximum allowed number of failed attempts when approving the operation. |
| timestamp_created | timestamp | - | Timestamp of when the operation was created. |
| timestamp_expires | timestamp | - | Timestamp of when the operation will expire. |
| timestamp_finalized | timestamp | - | Timestamp of when the operation reached the terminal state (approved, rejected, expired, etc.). |
| risk_flages | varchar(255) | - | Risk flags for offline QR code. Uppercase letters without separator, e.g. `XFC`. |
| totp_seed | varchar(24) | - | Optional TOTP seed used for proximity check, base64 encoded. |
<!-- end -->

<!-- begin database table pa_operation_template -->
Expand Down Expand Up @@ -623,6 +625,7 @@ CREATE TABLE pa_fido2_authenticator (
aaguid VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL,
signature_type VARCHAR(255) NOT NULL,
transports VARCHAR(255),
CONSTRAINT pa_fido2_authenticator_pkey PRIMARY KEY (aaguid)
);
```
Expand All @@ -634,4 +637,5 @@ CREATE TABLE pa_fido2_authenticator (
| aaguid | varchar(255) | primary key | Identifier of the FIDO2 authenticator. |
| description | varchar(255) | - | Human-readable description of the FIDO2 authenticator. |
| signature_type | varchar(255) | - | Signature type provided by the FIDO2 authenticator. |
| transport | varchar(255) | - | JSON array of transport hints for WebAuthn ceremonies. |
<!-- end -->
19 changes: 6 additions & 13 deletions docs/Deploying-Wildfly.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,13 @@ PowerAuth server contains the following configuration in `jboss-deployment-struc

```xml
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.3">
<deployment>
<exclusions>
<module name="org.apache.xerces" />
<module name="org.apache.xalan" />
</exclusions>
<exclude-subsystems>
<!-- disable the logging subsystem because the application manages its own logging independently -->
<subsystem name="logging" />
</exclude-subsystems>

<resources>
<!-- use WAR provided Bouncy Castle -->
<resource-root path="WEB-INF/lib/bcprov-jdk18on-${BC_VERSION}.jar" use-physical-code-source="true"/>
</resources>

<dependencies>
<module name="com.wultra.powerauth.server.conf" />
</dependencies>
Expand Down Expand Up @@ -93,12 +84,14 @@ The `application-ext.properties` file is used to override default configuration

```
# Database Configuration - Oracle
spring.datasource.url=jdbc:oracle:thin:@//[host]:[port]/[servicename]
spring.datasource.username=powerauth
spring.datasource.password=powerauth
spring.datasource.jndi-name=java:/jdbc/powerauth

# Application Service Configuration
powerauth.service.applicationEnvironment=TEST
```

Mind that you should specify `spring.datasource.jndi-name` to use the application server datasource (its declaration is out of the scope of this guideline).
When configure `spring.datasource.url`, the hikari connection pool is used.
Spring Boot running on WildFly or JBoos initializes [JtaTransactionManager](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/transaction/jta/JtaTransactionManager.html).

PowerAuth Server Spring application uses the `ext` Spring profile which activates overriding of default properties by `application-ext.properties`.
10 changes: 5 additions & 5 deletions docs/FIDO2-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ List of authenticators for provided user and application.
}
```

##### Response Params
##### Description of Response Params

| Attribute | Type | Description |
|---------------------|------------|-------------------------------------------------------------|
Expand Down Expand Up @@ -149,7 +149,7 @@ Challenge for new FIDO2 authenticator registration.
}
```

##### Response Params
##### Description of Response Params

| Attribute | Type | Description |
|---------------------|------------|-------------------------------------------------------------|
Expand Down Expand Up @@ -253,7 +253,7 @@ A new FIDO2 authenticator registration.
}
```

##### Response Params
##### Description of Response Params

| Attribute | Type | Description |
|---------------------|------------|-------------------------------------------------------------|
Expand Down Expand Up @@ -344,7 +344,7 @@ If the challenge is successfully created, API returns the following response:
}
```

##### Response Params
##### Description of Response Params

| Attribute | Type | Description |
|------------------------------------------------------------------|----------------------|---------------------------------------------------------------------------------|
Expand Down Expand Up @@ -433,7 +433,7 @@ If the challenge is successfully verified, API returns the following response:
}
```

##### Response Params
##### Description of Response Params

| Attribute | Type | Description |
|------------------------------------------------------------------|------------|-------------------------------------------------------------------------------------|
Expand Down
1 change: 1 addition & 0 deletions docs/Migration-Instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This page contains PowerAuth Server migration instructions.
When updating across multiple versions, you need to perform all migration steps additively.
<!-- end -->

- [PowerAuth Server 1.8.0](./PowerAuth-Server-1.8.0.md)
- [PowerAuth Server 1.7.0](./PowerAuth-Server-1.7.0.md)
- [PowerAuth Server 1.6.0](./PowerAuth-Server-1.6.0.md)
- [PowerAuth Server 1.5.0](./PowerAuth-Server-1.5.0.md)
Expand Down
15 changes: 15 additions & 0 deletions docs/PowerAuth-Server-1.7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

This guide contains instructions for migration from PowerAuth Server version `1.6.x` to version `1.7.0`.

## API

### Attribute `additionalData` modification

In version 1.7.x, the structure of the attribute `additionalData` has changed across numerous objects:

Previous versions used `Map<String, String>` to store `additionalData`, which restricted values to
string types.
Version 1.7.x changes `additionalData` to `Map<String, Object>`. This update allows for a more versatile data structure,
accommodating complex objects in addition to simple string values.

If your application interacts with objects containing the `additionalData` attribute and expects only string values, this
type change may lead to runtime errors or data parsing exceptions. It is crucial to update your data handling code to
accommodate potentially complex object structures within `additionalData`.

## Database Changes

For convenience you can use liquibase for your database migration.
Expand Down
Loading
Loading