Created Upgrading to 1.2 (markdown)
parent
7165c28937
commit
b1d44b6a46
|
@ -0,0 +1,33 @@
|
|||
The **1.1** version of MITREid Connect contains several changes from the **1.0** version series that will require a manual upgrade process.
|
||||
|
||||
## Spring Versions
|
||||
|
||||
The Spring and Spring security version dependencies have changed. This necessitates changes to the schema references for any overlayed configuration files. See the default configuration files in the main project for examples of the proper references.
|
||||
|
||||
## Project Layout
|
||||
|
||||
The project now contains six submodules instead of four. To access the new (experimental) UMA functionality, use the `uma-server` and `uma-server-webapp` modules instead of their `openid-connect-server` and `openid-connect-server-webapp` counterparts.
|
||||
|
||||
## Data Model
|
||||
|
||||
The underlying data model has changed between 1.0/1.1 and 1.2, and updates to the database are required. As such, existing data must be exported and re-imported during an upgrade if it is desired to be retained.
|
||||
|
||||
### Data Import/Export
|
||||
|
||||
As of version **1.0.20** and **1.1.16**, the data export API supports exporting into a format that is readable by 1.2.
|
||||
|
||||
To access this API, log in as an administrator and send a `GET` request to `/api/data` to return the JSON object representing the server's current state. **NOTE WELL:** this export includes information including tokens, authentication objects, client secrets, and other sensitive security information. Therefore, the data export must be protected.
|
||||
|
||||
To re-import this data, log in as an administrator on a newly-installed server and send a `POST` request to `/api/data` with a content type of `application/json` and the fully-formed JSON document exported from the API. This import MUST be done on an empty database with full schema or else you risk newly imported objects conflicting with existing objects.
|
||||
|
||||
The recommended process is as follows:
|
||||
|
||||
1. Log into the 1.0/1.1 server as an administrator
|
||||
1. Export the server state by performing a `GET` request on `/api/data`, save as a JSON file
|
||||
1. Shut down the 1.0/1.1 server
|
||||
1. Connect to the MySQL or HSQL database as a user with appropriate rights
|
||||
1. Clear the database, remove all tables related to OIDC
|
||||
1. Initialize the database with the empty schema
|
||||
1. Deploy the version 1.2 server
|
||||
1. Log into the 1.2 server as an administrator
|
||||
1. Import the server state from the saved JSON file by performing a `POST` request with the data
|
Loading…
Reference in New Issue