Skip to content
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

Conversation

thomasdarimont
Copy link
Contributor

@thomasdarimont thomasdarimont commented Sep 4, 2016

Refactored the scripting infrastructure and added documentation.
Added tests and an authenticator template in JavaScript for a quickstart.

@thomasdarimont thomasdarimont force-pushed the issue/KEYCLOAK-3491-revise-scripting-support branch 7 times, most recently from 6c94b84 to fc7d8f3 Compare September 14, 2016 23:30
@@ -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'}">
Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@thomasdarimont
Copy link
Contributor Author

Will update the docks tomorrow - but I think the PR is now ready for review.

@thomasdarimont thomasdarimont force-pushed the issue/KEYCLOAK-3491-revise-scripting-support branch 2 times, most recently from 8838991 to 4d2a8e9 Compare September 15, 2016 09:29
@thomasdarimont
Copy link
Contributor Author

FYI Just rebased the PR on current master.

@thomasdarimont thomasdarimont force-pushed the issue/KEYCLOAK-3491-revise-scripting-support branch from 4d2a8e9 to f834180 Compare September 15, 2016 18:53
@stianst
Copy link
Contributor

stianst commented Sep 20, 2016

Did you add docs?

@thomasdarimont thomasdarimont force-pushed the issue/KEYCLOAK-3491-revise-scripting-support branch from f834180 to 17e6998 Compare September 20, 2016 09:41
@thomasdarimont
Copy link
Contributor Author

Yes, but I wanted to wait for feedback first - here they are:
https://github.com/keycloak/server_admin_guide/pull/40

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.
@thomasdarimont thomasdarimont force-pushed the issue/KEYCLOAK-3491-revise-scripting-support branch from 17e6998 to 8e11338 Compare September 20, 2016 12:33
@thomasdarimont
Copy link
Contributor Author

... added some missing license headers.

@stianst stianst merged commit 5d34b7e into keycloak:master Sep 29, 2016
123445666 pushed a commit to 123445666/keycloak that referenced this pull request Mar 10, 2023
@thomasdarimont thomasdarimont deleted the issue/KEYCLOAK-3491-revise-scripting-support branch May 9, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants