Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Oracle PL/SQL HMAC_SHA1 question (vs SHA-1 (ShaPasswordEncoder))

  1. #11
    Join Date
    Jan 2008
    Posts
    1,833

    Default

    This error is different than the truncated error posted earlier. Previously there was a NullPointerException causing a problem where as now it appears that the configuration is missing a bean named passwordEncoder. You need to add your custom PasswordEncoder to your bean configuration.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

  2. #12
    Join Date
    Nov 2012
    Posts
    29

    Default

    Ah, you're right, sorry, I was trying to cleanse my code last night to make it safe for uploading and I grabbed the wrong stack trace.

    Relevant code and configs are attached, once again (with db config cleansed for security purposes).
    Attached Files Attached Files

  3. #13
    Join Date
    Jan 2008
    Posts
    1,833

    Default

    CustomPasswordEncoder does not handle a null salt which is causing a NPE.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

  4. #14
    Join Date
    Nov 2012
    Posts
    29

    Default

    Code:
    salt.toString();
    d'oh.

    Thank you for your help. I can't believe I didn't see that.

  5. #15
    Join Date
    Nov 2012
    Posts
    29

    Default

    Rob,

    I was able to finish the prototype last night and it's working properly now.

    Thanks again for your input, sometimes a second set of eyes can spot the easiest missed mistakes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •