Skip to content

feat: add configuration id to allow operating with multiple environments parallely #1422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 54 additions & 3 deletions docs/classes/AuthConfig.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ <h6><b>Properties</b></h6>
<span class="modifier">Optional</span>
<a href="#skipSubjectCheck" >skipSubjectCheck</a>
</li>
<li>
<span class="modifier">Public</span>
<span class="modifier">Optional</span>
<a href="#storageKeyPrefix" >storageKeyPrefix</a>
</li>
<li>
<span class="modifier">Public</span>
<span class="modifier">Optional</span>
Expand Down Expand Up @@ -367,7 +372,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="280" class="link-to-prism">projects/lib/src/auth.config.ts:280</a></div>
<div class="io-line">Defined in <a href="" data-line="286" class="link-to-prism">projects/lib/src/auth.config.ts:286</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1114,7 +1119,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="293" class="link-to-prism">projects/lib/src/auth.config.ts:293</a></div>
<div class="io-line">Defined in <a href="" data-line="299" class="link-to-prism">projects/lib/src/auth.config.ts:299</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1985,6 +1990,46 @@ <h3 id="inputs">
<td class="col-md-4">
<div class="io-description"><p>Defines wether to check the subject of a refreshed token after silent refresh.
Normally, it should be the same as before.</p>
</div>
</td>
</tr>

</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="storageKeyPrefix"></a>
<span class="name">
<span class="modifier">Public</span>
<span class="modifier">Optional</span>
<span ><b>storageKeyPrefix</b></span>
<a href="#storageKeyPrefix"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>

</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>&#x27;&#x27;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="286" class="link-to-prism">projects/lib/src/auth.config.ts:286</a></div>
</td>
</tr>

<tr>
<td class="col-md-4">
<div class="io-description"><p>Allows to set prefix for entries stored in configured storage.
Can be used to avoid multipple apps overriding each other values</p>
</div>
</td>
</tr>
Expand Down Expand Up @@ -2416,7 +2461,7 @@ <h3 id="inputs">
* it does not bring additional security and is therefore
* as good as using no password.
*/
public dummyClientSecret?: string &#x3D; &#x27;&#x27;;
public dummyClientSecret? &#x3D; &#x27;&#x27;;

/**
* Defines whether https is required.
Expand Down Expand Up @@ -2567,6 +2612,12 @@ <h3 id="inputs">
*/
public checkOrigin? &#x3D; false;

/**
* Allows to set prefix for entries stored in configured storage.
* Can be used to avoid multipple apps overriding each other values
*/
public storageKeyPrefix? &#x3D; &#x27;&#x27;;

constructor(json?: Partial&lt;AuthConfig&gt;) {
if (json) {
Object.assign(this, json);
Expand Down
2 changes: 1 addition & 1 deletion docs/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<li>
<b>fast-sha256</b> : ^1.3.0</li>
<li>
<b>jsrsasign</b> : ^10.3.0</li>
<b>jsrsasign</b> : ^11.0.0</li>
<li>
<b>rxjs</b> : ^6.5.3</li>
<li>
Expand Down
Loading