-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from gbourant/main
remove hardcoded strings
- Loading branch information
Showing
7 changed files
with
87 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
:summaryTableId: quarkus-renarde | ||
[.configuration-legend] | ||
icon:lock[title=Fixed at build time] Configuration property fixed at build time - All other configuration properties are overridable at runtime | ||
[.configuration-reference.searchable, cols="80,.^10,.^10"] | ||
|=== | ||
|
||
h|[[quarkus-renarde_configuration]]link:#quarkus-renarde_configuration[Configuration property] | ||
|
||
h|Type | ||
h|Default | ||
|
||
a|icon:lock[title=Fixed at build time] [[quarkus-renarde_quarkus.renarde.auth.location-cookie]]`link:#quarkus-renarde_quarkus.renarde.auth.location-cookie[quarkus.renarde.auth.location-cookie]` | ||
|
||
|
||
[.description] | ||
-- | ||
Option to control the name of the cookie used to redirect the user back to where he wants to get access to. | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++QUARKUS_RENARDE_AUTH_LOCATION_COOKIE+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++QUARKUS_RENARDE_AUTH_LOCATION_COOKIE+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|string | ||
|`quarkus-redirect-location` | ||
|
||
|=== |
16 changes: 16 additions & 0 deletions
16
runtime/src/main/java/io/quarkiverse/renarde/configuration/RenardeAuthConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkiverse.renarde.configuration; | ||
|
||
import io.quarkus.runtime.annotations.ConfigGroup; | ||
import io.quarkus.runtime.annotations.ConfigItem; | ||
|
||
@ConfigGroup | ||
public class RenardeAuthConfig { | ||
|
||
/** | ||
* Option to control the name of the cookie used to redirect the user back | ||
* to where he wants to get access to. | ||
*/ | ||
@ConfigItem(defaultValue = "quarkus-redirect-location") | ||
public String locationCookie; | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
runtime/src/main/java/io/quarkiverse/renarde/configuration/RenardeConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package io.quarkiverse.renarde.configuration; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
|
||
@ConfigRoot(name = "renarde", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) | ||
public class RenardeConfig { | ||
|
||
/** | ||
* Renarde Auth config | ||
*/ | ||
@ConfigItem | ||
public RenardeAuthConfig auth; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters