Git Product home page Git Product logo

Comments (7)

siepkes avatar siepkes commented on June 19, 2024

Haven't looked in-depth yet but this might help; WrenAM 13.5.0-SNAPSHOT is based on the latest OpenAM 13.5 sources we had available at the time; OpenAM 13.5.0 RC11. The ForgeRock final version of OpenAM 13.5 is basically RC17. The ForgeRock samples repo mostly likely assume 13.5.0 final. It could very well be that between RC11 and RC17 the version of some dependencies changed. So you might need to change some versions in the ForgeRock samples POM.

from wrenam.

diedel avatar diedel commented on June 19, 2024

After some investigation I think the problem is that Maven search for newer versions of local artifacts in remote repositories, following a daily frequency.

The missing dependency was already in wrensec-deps repository:
https://github.com/WrenSecurity/wrensec-deps/tree/master/repo/org/forgerock/commons/forgerock-util/3.0.1

I have to test and confirm, but I think the solution is to load again the wrensec-deps and to build wrenam project. Afterwards I'll build the post authentication sample, during the same day... :) Or with the -o (offline) option to avoid Maven remote connections.

from wrenam.

diedel avatar diedel commented on June 19, 2024

Well... I was partially wrong in my previous comment. Sorry.

The forgerock-util-3.0.1 dependency does exists in wrensec-deps BUT is not installed by the wrenam_13-5 script, it's installed by the wrenam_13 script.
Maybe adding install_artifact "org/forgerock/commons/forgerock-util/3.0.1/forgerock-util-3.0.1" in the wrenam_13-5 script will resolve the problem?

from wrenam.

diedel avatar diedel commented on June 19, 2024

The ForgeRock samples repo mostly likely assume 13.5.0 final

The sample's pom has version 14.0.0 by default, but the build instructions guides you to update that version to match your OpenAM version, in my case 13.5.0-SNAPSHOT.

from wrenam.

diedel avatar diedel commented on June 19, 2024

The only openam dependencies of the sample are the openam-core-13.5.0-SNAPSHOT and openam-shared-13.5.0-SNAPSHOT, which are built during the wrenam main build.

Again, as I pointed out in my first comment, the wrenam build was ok and all the dependencies were resolved (including the forgerock-util dependency). Then why the sample build fails if its starting dependencies are dependencies of wrenam which resolved OK , including the transitive dependencies?

Possible explanation?
What about the nearest definition first or nearest wins strategy of Maven to resolve dependencies versions?:
http://techidiocy.com/maven-dependency-version-conflict-problem-and-resolution/

from wrenam.

siepkes avatar siepkes commented on June 19, 2024

Thanks for looking in to it!

I do think that for the long(er) term maintaining compatibility with FR sample is not possible for Wren since OpenAM will only drifter further away from wren:AM (I doubt compatibility with Wren is an objective for FR ;-). Therefor I have forked the repo as wrenam-sample-post-auth under the WrenSecurity umbrella. Looking forward to any pull requests you might have to get this sample fixed!

Any issues related to the sample can be created in the wrenam-sample-post-auth repo. Closing this issue since it is not really related to wren:AM itself.

from wrenam.

diedel avatar diedel commented on June 19, 2024

Thanks siepkes.

Just to say that this post authentication plugin sample it's not just any sample. I think it's not the sample by itself but the wrenam/openam plugin functionality what is being tested here. The sample depends on opemam-core-13.5.0-SNAPSHOT and openam-shared-13.5.0-SNAPSHOT, both wrenam dependencies.

In my case I have a need that it's covered by the plugin functionality of wrenam/openam, and I have to adapt this sample to that need. Please see: https://forum.forgerock.com/topic/custom-ldap-attribute/

I'll continue to find a solution, working with the new repo you created. If it's not possible to fix the sample maybe I should think about adapting the corresponding wrenam code.

from wrenam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.