2016-11-29 15:30:53 +00:00
[[_resource_server_import_config]]
2022-04-18 14:10:57 +00:00
= Export and import authorization configuration
2016-06-16 17:08:04 +00:00
2016-11-15 21:34:20 +00:00
The configuration settings for a resource server (or client) can be exported and downloaded. You can also import an existing configuration file for a resource server. Importing and exporting a configuration file is helpful when you want to create an initial configuration for a resource server or to update an existing configuration. The configuration file contains definitions for:
2016-06-16 17:08:04 +00:00
2016-11-15 21:34:20 +00:00
* Protected resources and scopes
2016-06-16 17:08:04 +00:00
* Policies
* Permissions
2022-04-18 14:10:57 +00:00
== Exporting a configuration file
2016-11-15 21:34:20 +00:00
2022-04-18 14:10:57 +00:00
.Procedure
2016-11-15 21:34:20 +00:00
2022-07-25 20:36:51 +00:00
. Click *Clients* in the menu.
. Click the client you created as a resource server.
ifeval::[{project_community}==true]
. Click the *Export* tab.
endif::[]
ifeval::[{project_product}==true]
. Click *Clients* in the menu.
. Click the client you created as a resource server.
endif::[]
2016-11-29 15:30:53 +00:00
+
2016-06-16 17:08:04 +00:00
.Export Settings
2022-07-25 20:36:51 +00:00
image:{project_images}/resource-server/authz-export.png[Export Settings]
2016-06-16 17:08:04 +00:00
2016-11-15 21:34:20 +00:00
The configuration file is exported in JSON format and displayed in a text area, from which you can copy and paste. You can also click *Download* to download the configuration file and save it.
2016-06-16 17:08:04 +00:00
2022-04-18 14:10:57 +00:00
== Importing a configuration file
2016-06-16 17:08:04 +00:00
2022-04-18 14:10:57 +00:00
You can import a configuration file for a resource server.
.Procedure
2017-12-21 14:01:55 +00:00
. Navigate to the *Resource Server Settings* page.
+
.Import Settings
2022-07-25 20:36:51 +00:00
image:{project_images}/resource-server/authz-settings.png[Import Settings]
2017-12-21 14:01:55 +00:00
2022-07-25 20:36:51 +00:00
ifeval::[{project_community}==true]
. Click *Import* and choose a file containing the configuration that you want to import.
endif::[]
ifeval::[{project_product}==true]
2022-04-18 14:10:57 +00:00
. Click *Select file* and choose a file containing the configuration that you want to import.
2022-07-25 20:36:51 +00:00
endif::[]