-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add realm level setting(s) for Open-specific values #52
Conversation
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/util/OpenAttribute.java
Outdated
Show resolved
Hide resolved
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/forms/login/freemarker/models/OpenBean.java
Outdated
Show resolved
Hide resolved
...ak/ol-spi/src/main/java/edu/mit/keycloak/forms/login/freemarker/models/LoginAttemptBean.java
Outdated
Show resolved
Hide resolved
...pi/src/main/java/edu/mit/keycloak/forms/login/freemarker/OlFreeMarkerLoginFormsProvider.java
Outdated
Show resolved
Hide resolved
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/admin/ui/OpenAdminUiTab.java
Outdated
Show resolved
Hide resolved
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/admin/ui/OpenAdminUiTab.java
Outdated
Show resolved
Hide resolved
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/util/OpenAttribute.java
Outdated
Show resolved
Hide resolved
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/forms/login/freemarker/models/OpenBean.java
Outdated
Show resolved
Hide resolved
ol-keycloak/ol-spi/src/main/java/edu/mit/keycloak/admin/ui/OpenAdminUiTab.java
Outdated
Show resolved
Hide resolved
@@ -81,7 +81,7 @@ | |||
<header class="pf-v5-c-login__main-header"> | |||
<div class="pf-v5-u-mb-2xl"> | |||
<h1 class="pf-v5-c-title pf-m-4xl"> | |||
<a href="https://mit.edu" class="logo-link pf-v5-u-display-flex pf-v5-u-justify-content-center"> | |||
<a href="${open.homeUrl}" class="logo-link pf-v5-u-display-flex pf-v5-u-justify-content-center"> |
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.
Does this actually work? I'm getting an error:
- Failed at: ${open.homeUrl} [in template "template.ftl" in macro "registrationLayout" at line 84, column 22]
- Reached through: @layout.registrationLayout displayMes... [in template "error.ftl" at line 2, column 1]
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 worked for me, that error would make me think the latest code wasn't loaded in, but you wouldn't be seeing any of the rest of it either if that was the case. That particular property isn't conditional like loginAttempt
is...
...pi/src/main/java/edu/mit/keycloak/forms/login/freemarker/OlFreeMarkerLoginFormsProvider.java
Outdated
Show resolved
Hide resolved
@collinpreston should be all set, although I'm not sure why you'd be hitting this error: #52 (comment) |
Note you'll need to re-enter the setting, since the key changed. |
4becbe2
to
f8eff22
Compare
Revert "Merge pull request #52 from mitodl/nl/open-link"
What are the relevant tickets?
Part of #47
Description (What does it do?)
This adds a
UITabProvider
which adds an "MIT Open" tab to the realm admin interface as well as exposing the configured data via realm attributes (only 1 for now).I also did some refactoring of the template provider to organize the properties under beans so they're not all at the top level.
Note: there are several other places that need to use this url too, I'm going to deal with that in a separate PR later. I only did enough here to prove that it works.
Screenshots (if appropriate):
How can this be tested?
http://open.odl.local:8083/
).