Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restrictedAccess authentication not working? #292

Open
pedro-cf opened this issue Jun 12, 2023 · 3 comments
Open

restrictedAccess authentication not working? #292

pedro-cf opened this issue Jun 12, 2023 · 3 comments

Comments

@pedro-cf
Copy link

Hello I am currently running a dockerized instance of thredds and I am trying to setup restrictedAccess on a datasetScan.

I've created a role:

<role rolename="test"/>

I've created a user:

  <user username="test" password="password" roles="test,restrictedDatasetUser"/>

and added to my datasetScan:

restrictAccess="test"

But all kinds of authentication attempts don't seem to be working:

image

Could this be because I have not setup a SSL certificate?

@julienchastang
Copy link
Member

@pedro-cf
Copy link
Author

Hi @pedro-cf. There is some documentation related to this in the parent container.

Attempting to log with the default admin user to the /admin/debug page does not work aswell.

@sbgabrio
Copy link

sbgabrio commented May 2, 2024

I ran into the same issue setting up triggers for dynamic data changes. Triggers use "tdm" for a user so supplement to fit your own needs.
I had to update the password (tomcat-users.xml) for “tdm” with the password’s SHA-512 hash (I added lines in my Dockerfile for editing the file)
BUT the hash had to be generated using tomcat’s digest script:
/usr/local/tomcat/bin/digest.sh -a sha-512 -h org.apache.catalina.realm.MessageDigestCredentialHandler MyPassword
The handler -h is very important (but you won’t find that in thredds documentation yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants