Hi Aroldo,

This issue is documented in one of our "Common Installation Issues" in the 
installation docs:
https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-MyRESTAPIisrunningunderHTTPS,butsomeofits%22link%22URLsareswitchingtoHTTP

As noted there, you likely need to set the "X-Forwarded-Proto: https" 
header in your Apache or Nginx settings.

Tim

On Friday, October 11, 2024 at 2:01:55 PM UTC-5 aro...@gmail.com wrote:

> Hello.
>
> We have a doubt.
>
> The backend of our dspace 7.5 is configured with https, but the urls 
> returned by the api are with http.
>
> Example URL: 
> https://biblioteca.mpf.mp.br/server/api/authz/authorizations/search/object?uri=https://biblioteca.mpf.mp.br/server/api/core/bitstreams/
>  
> 8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7&feature=canDownload&embed=feature
>
> Return:
>
> {
>   "_embedded" : {
>     "authorizations" : [ {
>       "id" : 
> "canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7",
>       "type" : "authorization",
>       "_links" : {
>         "eperson" : {
>           "href" : "*http*://
> biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7/eperson
> "
>         },
>         "feature" : {
>           "href" : "*http*://
> biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7/feature
> "
>         },
>         "object" : {
>           "href" : "*http*://
> biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7/object
> "
>         },
>         "self" : {
>           "href" : "*http*://
> biblioteca.mpf.mp.br/server/api/authz/authorizations/canDownload_core.bitstream_8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7
> "
>         }
>       },
>       "_embedded" : {
>         "feature" : {
>           "id" : "canDownload",
>           "description" : "It can be used to verify if the user can 
> download a bitstream",
>           "type" : "feature",
>           "resourcetypes" : [ "core.bitstream" ],
>           "_links" : {
>             "self" : {
>               "href" : "*http*://
> biblioteca.mpf.mp.br/server/api/authz/features/canDownload"
>             }
>           }
>         }
>       }
>     } ]
>   },
>   "_links" : {
>     "self" : {
>       "href" : "*http*://
> biblioteca.mpf.mp.br/server/api/authz/authorizations/search/object?uri=https://biblioteca.mpf.mp.br/server/api/core/bitstreams/8a9c237b-e7d8-4af7-aa94-a2c82e30b8d7&feature=canDownload
> "
>     }
>   },
>   "page" : {
>     "size" : 20,
>     "totalElements" : 1,
>     "totalPages" : 1,
>     "number" : 0
>   }
> }
>
> Why don't these links start with https?
>
> Aroldo
>
>
>

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/267c71f1-c666-490e-9b6b-0b86ec3ed424n%40googlegroups.com.

Reply via email to