Skip to Main Content
Spotfire Ideas Portal
Status Implemented
Product Spotfire
Categories API
Created by Guest
Created on Oct 10, 2018

Update the Java User Directory API to include same options as the web service

The server Java API (com.spotfire.server.userdir) has methods for creating users etc., but the API is missing aome options that are available in the web service API, specifically the ability to set email adress and name when creating a user account in a domain while specifying the email address and name.

Implemented in 10.1
  • Attach files
  • Guest
    Reply
    |
    Oct 29, 2018

    Thanks Jens. I tried returning a CustomAuthenticatorPrincipal object and then allowing the built-in post authentication filter to create the users, but there were a couple of problems. Firstly, I also need a custom post-authentication filter (for another purpose), but Spotfire doesn't like the configuration setting with both auto-create and a custom filter. Secondly, the user account wasn't created until after my post-authentication filter, which meant I was unable to assign the user to groups because it didn't exist yet.

  • Guest
    Reply
    |
    Oct 15, 2018

    Thank you for your suggestion, you're right that some functionality is missing from the Java User Directory API.

    When it comes to creation of new users I however thing that there are workarounds - assuming that you're implementing a CustomAuthenticator, a CustomWebAuthenticator or a PostAuthenticationFilter. The two former should return CustomAuthenticatorPrincipal instances, which may be created with display names and email addresses, and the latter returns a SecurityContext which can also be created with a display name and email address.