-
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.
- Loading branch information
Marko Ivančić
committed
Dec 1, 2024
1 parent
c7d4699
commit bbbfa6f
Showing
19 changed files
with
388 additions
and
57 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(function () { | ||
'use strict'; | ||
|
||
// Handle enabling and disabling input for 'allowed origins', based on client type radio input. | ||
function toggleAllowedOrigins() { | ||
if (radioOptionPublic.checked) { | ||
inputAllowedOrigin.disabled = false; // Enable the input field | ||
} else if (radioOptionConfidential.checked) { | ||
inputAllowedOrigin.disabled = true; // Disable the input field | ||
} | ||
} | ||
|
||
// Get references to the radio buttons and the input field | ||
const radioOptionPublic = document.getElementById("radio-option-public"); | ||
const radioOptionConfidential = document.getElementById("radio-option-confidential"); | ||
const inputAllowedOrigin = document.getElementById("frm-allowed_origin"); | ||
|
||
radioOptionPublic.addEventListener("change", toggleAllowedOrigins); | ||
radioOptionConfidential.addEventListener("change", toggleAllowedOrigins); | ||
|
||
toggleAllowedOrigins(); | ||
})(); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "@oidc/clients/_form.twig" %} | ||
|
||
{% set pagetitle = 'Edit new OpenID Connect Client' | trans %} | ||
|
||
{% block pre_breadcrump %} | ||
<span class="divider">/</span> | ||
<a class="section" href="./index.php">{{ 'OpenID Connect Client Registry'|trans }}</a> | ||
{% endblock %} | ||
|
||
{% block action %} | ||
<div class="ui submit primary icon labeled button"> | ||
<i class="save icon"></i> | ||
{{ '{oidc:save}'|trans }} | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.