Skip to content

Commit 9a381cb

Browse files
authored
RHIDP-5491 configure expiry on refresh token cookie (redhat-developer#899)
Signed-off-by: Fabrice Flore-Thébault <[email protected]>
1 parent 78e21c3 commit 9a381cb

3 files changed

+43
-0
lines changed

modules/authentication/proc-enabling-authentication-with-github.adoc

+14
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@ auth:
161161
----
162162
////
163163

164+
`sessionDuration`::
165+
Lifespan of the user session.
166+
Enter a duration in `ms` library format (such as '24h', '2 days'), ISO duration, or "human duration" as used in code.
167+
+
168+
.`app-config-rhdh.yaml` fragment with optional `sessionDuration` field
169+
[source,yaml,subs="+quotes"]
170+
----
171+
auth:
172+
providers:
173+
github:
174+
production:
175+
sessionDuration: { hours: 24 }
176+
----
177+
164178
[TIP]
165179
====
166180
To enable GitHub integration with a different authentication provider, complete the following configurations:

modules/authentication/proc-enabling-authentication-with-microsoft-azure.adoc

+15
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@ auth:
133133
additionalScopes:
134134
- Mail.Send
135135
----
136+
137+
`sessionDuration`::
138+
Lifespan of the user session.
139+
Enter a duration in `ms` library format (such as '24h', '2 days'), ISO duration, or "human duration" as used in code.
140+
+
141+
.`app-config-rhdh.yaml` fragment with optional `sessionDuration` field
142+
[source,yaml,subs="+quotes"]
143+
----
144+
auth:
145+
providers:
146+
microsoft:
147+
production:
148+
sessionDuration: { hours: 24 }
149+
----
150+
136151
--
137152

138153
[NOTE]

modules/authentication/proc-enabling-authentication-with-rhbk.adoc

+14
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ auth:
163163
----
164164
--
165165

166+
`sessionDuration`::
167+
Lifespan of the user session.
168+
Enter a duration in `ms` library format (such as '24h', '2 days'), ISO duration, or "human duration" as used in code.
169+
+
170+
.`app-config-rhdh.yaml` fragment with optional `sessionDuration` field
171+
[source,yaml,subs="+quotes"]
172+
----
173+
auth:
174+
providers:
175+
github:
176+
production:
177+
sessionDuration: { hours: 24 }
178+
----
179+
166180
`auth.backstageTokenExpiration`::
167181
--
168182
To modify the {product-short} token expiration from its default value of one hour, note that this refers to the validity of short-term cryptographic tokens, not the session duration. The expiration value must be set between 10 minutes and 24 hours.

0 commit comments

Comments
 (0)