Hello Glenn, Are you able to login if you disabled authentication-password.domain.valid?. If you can not try the the following and see if it helps if not you need to post the webserver/reverse proxy setup and the environment.*.ts you used ( UI & REST parts). In the Chrome Developer Tools --> Network --> Headers --> Name. In one of the links you see there find the Referer and it's value and add it to rest.cors.allowed-origins line. You only need to add the first part of the URL or the IP for instance https://172.31.57.198 or https://d7test.ourschool.edu. don't add the port unless you see it there.
Mohammed On Tuesday, December 21, 2021 at 8:55:28 PM UTC+3 Glenn G wrote: > So I finally got this DSpace 7.1 sorta working, but it won't let me log in > through the user interface. If I enter my email address and password, a > pink balloon appears with the message: "Invalid email or password." Chrome > developer tools says, "zone-evergreen.js:2845 POST > https://d7test.ourschool.edu/server/api/authn/login 403". > > If I try to register as a new user, a pink error balloon pops up for > several seconds. It says, "Error when trying to register email > An error occured when registering the following email address: ..." > > The same thing happens if I choose "Have you forgotten your password?" > > For these actions, Chrome developer tools says, "zone-evergreen.js:2845 > POST https://d7test.ourschool.edu/server/api/eperson/registrations 403" > > Depending on the action, the Tomcat log says, "'POST > /server/api/authn/login HTTP/1.1' 403" or 'POST > /server/api/eperson/registrations HTTP/1.1' 403". > > DSpace is configured to use only password authentication. These are some > of the possibly relevant settings I'm using in [dspace]/config/local.cfg: > > dspace.server.url = https://d7test.ourschool.edu/server > dspace.ui.url = https://d7test.ourschool.edu > authentication-password.domain.valid = ourschool.edu > rest.cors.allowed-origins = ${dspace.ui.url}, http://127.0.0.1 > proxies.trusted.ipranges = 127.0.0.1,172.31. > plugin.sequence.org.dspace.authenticate.AuthenticationMethod = > org.dspace.authenticate.PasswordAuthentication > rest.cors.allowed-origins = ${dspace.ui.url}, http://127.0.0.1, > http://localhost:4000, http://172.31.57.198:4000, https://127.0.0.1, > https://localhost:4000, https://172.31.57.198:4000 > > My OS is Ubuntu 20.04 LTS. All my DSpace backend files are owned by > tomcat:tomcat. The Angular files are owned by dspace:dspace. This is a > single-server setup. > > What should I look at next? > > Thanks, > Glenn > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/aecdb9f8-ebed-4c9a-8345-94cc0dd7b651n%40googlegroups.com.
