-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
KEYCLOAK-3491 Revise Scripting Support #3189
KEYCLOAK-3491 Revise Scripting Support #3189
Conversation
6c94b84
to
fc7d8f3
Compare
@@ -33,7 +33,7 @@ | |||
</div> | |||
|
|||
<div class="col-md-6" data-ng-show="option.type == 'Script'"> | |||
<div ng-model="config[option.name][0]" placeholder="Enter your script..." ui-ace="{ useWrapMode: true, showGutter: true, theme:'github', mode: 'javascript'}"> | |||
<div ng-model="config[option.name]" placeholder="Enter your script..." ui-ace="{ useWrapMode: true, showGutter: true, theme:'github', mode: 'javascript'}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I get the default value of the option shown here?
the default value contains an authenticator template for a quickstart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure - it's probably burried in server info somewhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found it ... i needed to propagate the default values of the configuration properties within the AuthenticationConfigCreateCtrl
in realm.js
@@ -0,0 +1,26 @@ | |||
// import enum for error lookup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default authenticator template that should be shown in the code editor for a quick start.
Will update the docks tomorrow - but I think the PR is now ready for review. |
8838991
to
4d2a8e9
Compare
FYI Just rebased the PR on current master. |
4d2a8e9
to
f834180
Compare
Did you add docs? |
f834180
to
17e6998
Compare
Yes, but I wanted to wait for feedback first - here they are: |
Refactored the scripting infrastructure and added documentation. Added tests and an authenticator template in JavaScript for a quickstart. Increased height of ace code editor to 600px to avoid scrolling.
17e6998
to
8e11338
Compare
... added some missing license headers. |
Refactored the scripting infrastructure and added documentation.
Added tests and an authenticator template in JavaScript for a quickstart.