You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
Enhanced preview support. Developers can now provide client application credentials and the plugin will use Oracle's cloud IDP to generate an OAuth token for the session.
Copy file name to clipboardExpand all lines: README.md
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ module.exports = {
38
38
renditions:'none',
39
39
preview:false,
40
40
auth:'',
41
+
oAuthSettings:null,
41
42
staticAssetDownload:'false'.
42
43
staticAssetRootDir:'asset'
43
44
@@ -87,8 +88,19 @@ This setting controls whether the client will be retrieving preview (unpublished
87
88
88
89
**`auth`**[optional]
89
90
This setting is used to set authentication tokens required when downloading from a secure publishing channel (preview=false) or preview items. It may use basic auth or
90
-
an OAuth bearer token. It defaults to an empty string.
91
+
an OAuth bearer token. It defaults to an empty string. Note that using this setting with a bearer token will not refresh the token when it is no longer valid. For that
92
+
behavior you need to use the oAuthSettings parameter documented below.
91
93
94
+
**`oAuthSettings`**[optional]
95
+
This setting is used when using OAUTH to authenticate a secure publishing channel or using preview support. Using this will ensure that a valid OAUTH bearer token will
96
+
be available to the application. The setting takes the form of an object with the following fields:
97
+
{
98
+
CLIENT_ID: 'xxxxx',
99
+
CLIENT_SECRET: 'xxxxx',
100
+
CLIENT_SCOPE_URL: 'xxxxx',
101
+
IDP_URL: 'https://identity.server.com'
102
+
}
103
+
92
104
**`staticAssetDownload`**[optional]
93
105
This setting is used to make the plugin download binary assets into the public directory of the site as opposed to storing them in the internal Gatsby cache. This allows items such as image files to be referenced as direct URLs rather than using GraphQL to access them. It is used in combination with the staticAssetRootDir (described below). The default value is false which means all data will be in the cache instead.
0 commit comments