I was assuming Java code, but didn't understand how you implemented profile
upload ;)
Go with Mareks suggestions as you won't have access to env variables from
within JavaScript. theme.properties doesn't currently support using system
properties or env variables, but maybe it should. You can create JIRA for
it if you want.
On 10 May 2016 at 17:29, Chris Hairfield <chairfield(a)gmail.com> wrote:
Interesting. Would you mind showing a code example, Stian? I assumed
that
the Javascript had no access to environment variables, as is standard; are
environment variables accessible from the template? Any ability to read
environment variables directly would simplify our approach.
Marek, thank you for your suggestion. We are able to read values from our
theme.properties file exactly as you described.
On Mon, May 9, 2016 at 10:40 PM Stian Thorgersen <sthorger(a)redhat.com>
wrote:
> Not sure how you're implementing the profile upload, but you just need to
> use a environment value. Any code you write would have access to that.
>
> On 9 May 2016 at 16:03, Marek Posolda <mposolda(a)redhat.com> wrote:
>
>> Maybe you can use "theme.properties" file and configure some property,
>> which will be different in your staging and production environment . In the
>> freemarker template, the properties of theme should be available under key
>> "properties" . So you can read your property from the freemarker file.
>>
>> Seems you will need different version of theme.properties for your
>> staging and production, but I don't have better idea to solve this :/
>>
>> Marek
>>
>>
>> On 06/05/16 23:04, Chris Hairfield wrote:
>>
>> We're considering building an account management theme that is capable
>> of uploading a profile photo. We'd save the photo to an S3 bucket, and
>> would wish to do so based on environment; our stage Keycloak would point to
>> a stage S3 bucket, prod to the prod bucket, etc..
>>
>>
>> Is there a way to configure Keycloak on a per-environment basis such
>> that our theme could know its environment in order to point to the correct
>> S3 bucket?
>>
>>
>> Thanks!
>> Chris
>>
>>
>> _______________________________________________
>> keycloak-user mailing
listkeycloak-user@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>>
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>