On 13/05/13 12:44, Asankha Perera wrote:
> I am trying to use the UAA as an OAuth2 auth server for a project, and
> have been having some issues getting it to work standalone (i.e. master
> branch) against MySQL or Postgres.
You need to set the active Spring profile (and include "mysql" or
"postgresql" or "oracle"). You can do that with system properties
(-Dspring.profiles.active=mysql, see Spring User Guide) or using
spring_profiles property in uaa.yml.
uaa/src/test/resources/test/profiles/mysql/uaa.yml has an example.
> First the YamlConfigurationValidator
> kept giving errors (like some properties were not valid) when I copied
> the default-uaa.yml as my default uaa.yml.
That's interesting. The default-uaa.yml isn't tested that way - it's
just a documentation artifact - but if it has errors they could be
fixed. If I recall correctly it has pretty flakey data in it, more as a
guide than as a recommendation (like self commenting code).
> However, commenting it from
> the env.xml let me avoid those errors on startup, and it now starts
> without error.
I wouldn't trust that - the errors would be genuine if they were
stopping you from starting up, and the error messages should have clear
(at least as far as we control them).
> I assumed that editing it was the recommended way to
> configure a UAA instance.
Not really, but it's certainly a possibility to get started quickly. In
production it is better to use the SCIM endpoints directly (e.g. with
uaac command line tool, or another custom client).
> Can someone share a uaa.yml file which will
> allow me to define new user accounts etc,
Same as above (the mysql one should work).
> As a side question, should I be looking at the
> master branch or the develop branch?
It depends. Master is supposed to be stable, so that's the best place
for stability. Develop is better for testing new features.
D.