Hi @Ryan Josefsberg
I’m sorry to hear that you are having trouble with SharePoint 2019 REST API authentication.
To help you better, can you provide some information about your scenario? (Pay attention to the protection of personal privacy)
I have searched the web for some possible solutions and here is what I found:
Please enable Basic Authentication on your SharePoint web application in the Central Administration site.
Configure your web.config file to allow Basic Authentication and disable anonymous access.
Correct URL Format: Ensure that the URL you're using for making REST API calls is correctly formatted. Double-check that the site URL and the endpoint path are accurate.
URL Mappings: While SharePoint does have managed paths and URL mappings, you typically don't need to manually configure these mappings for the REST API to work. However, if you suspect URL mapping issues, it's a good idea to verify that the URL you are using is correct. SharePoint's REST API URL structure generally follows this pattern: https://<yourserver>/<sitecollection>/<site>/_api/web.
Headers and Authorization: Make sure that you're setting the appropriate headers in your Java application's HTTP requests. For Basic Authentication, you need to include an Authorization header with a base64-encoded combination of the username and password (e.g., Authorization: Basic <base64_encoded_username_password>).
NTLM Authentication: Since you're using NTLM authentication, you should ensure that your Java application handles NTLM authentication correctly. NTLM can be quite complex to implement manually, so you might want to consider using libraries or tools that support NTLM authentication out of the box.
Here is a link for your reference:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Cheng Feng