dagsthuhl: Deposit client configuration
Original demand [3]
staging:
-
client: They need to create their staging account in the staging keycloak realm:
dagpub-swh-staging
-
Awaiting domain and provider url from client:
- provider_url: https://submission-dev.dagstuhl.de/
- domain: submission-dev.dagstuhl.de
-
Add
swh.deposit.api
role to user in keycloak in staging realm - deposit db: Create deposit api collection & client [2] (requires domain and provider url first)
- Ask client whether the deposit access is ok
production:
-
client: They need to create their staging account in the staging keycloak realm:
dagpub-swh
-
Awaiting domain and provider url from client:
- provider_url: https://doi.org/10.4230/ => To update
- domain: submission.dagstuhl.de
-
Add
swh.deposit.api
role to user in keycloak in staging realm - deposit db: Create deposit api collection & client [2] (same as staging)
- Ask client whether the deposit access is ok
[1] https://docs.softwareheritage.org/devel/swh-deposit/api/register-account.html#as-a-sysadm
[2] Output sample cli
swhdeposit@deposit:~$ swh deposit admin \
--config-file $SWH_CONFIG_FILENAME \
--platform production \
user create \
--collection "<collection>" \
--username "<username>" \
--provider-url <url-tbd> \
--domain "<domain>"
Collection '<collection>' exists, skipping.
Create user '<username>'.
User '<username>' created.
[3] as per @vlorentz 's email for dagstuhl deposit user
Valentin Lorentz 3:51 PM (0 minutes ago) to Ramy-Badr, Antoine
Now you need a sysadmin to grant you permission to send deposits.
Can you tell ardumont (CCed) the base URL you want to use for your
deposits, and your logins? (dagpub-swh and dagpub-swh-staging on Prod
and Staging respectively, I believe)
Then ardumont will tell you the URL to send the deposits to
On 08/03/2024 15:46, Ramy-Badr Ahmed wrote:
> Ah yes right, it was my mistake I tried it out as sysadm. Thanks :)
>
> But now it redirects me to the usual "Welcome to the Software Heritage
> archive " webpage after successful authentication. I guess I once saw a
> UI for depositing metadata (or browsing) as clients, does that exist?
>
> As a first step, I should follow these steps now:
> https://docs.softwareheritage.org/devel/swh-deposit/specs/spec-meta-deposit.html . right?
>
> I currently have got only the XML format (converted from codemeta). Then
> I should POST it
>
> Kind regards,
> Ramy