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

Submit publications to HISinOne #550

Open
Possommi opened this issue Jun 12, 2024 · 0 comments · May be fixed by #551
Open

Submit publications to HISinOne #550

Possommi opened this issue Jun 12, 2024 · 0 comments · May be fixed by #551
Assignees

Comments

@Possommi
Copy link
Contributor

Possommi commented Jun 12, 2024

Konfiguration des OAuth-Clients in HISinOne 2024.06

Folgende Schritte sind in der angegeben Reihenfolge zu unternehmen

OAuth Scope anlegen

  • als Admin in HISinOne anmelden
  • Suchen nach OAuth-Scopes verwalten -
  • neuen Scope anlegen
  • diesem Scope die benötigten Rechte zuweisen, siehe unten
  • speichern

Rolle anlegen

  • es muss eine Rolle angelegt werden
  • dort muss zwingend als Schlüssel 6749 hinterlegt werden
  • Rolle muss die gleichen Rechte wieder Scope haben
  • Rolle speichern

Rolle zuweisen

  • die konfigurierte Rolle muss nun einer Person zugewiesen werden
  • entweder bestehende Person verwenden, oder neue anlegen
  • speichern

OAuth-Client anlegen

  • Oauth-Client anlegen
  • als Typ "vertrauenswürdig" auswählen
  • nun Key und Secret generieren und notieren
  • als technische Rolle muss die oben konfigurierte Person ausgewählt werden
  • speichern

Scope dem Client hinzufügen

  • nun den oben angelegt Scope dem Client hinzufügen
  • den Haken bei "automatisch gewähren" setzen
  • speichern

Mit Client Key und Secret kann ein Token wie folgt angefragt werden:

curl -i -X POST 'https://host.example/qisserver/api/v1/cs/psv/oauth/token' \ -H 'Authorization: Basic base64($clientKey:clientSecret)' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'grant_type=client_credentials'

Notwendige Rechte

Endpunkt Rechte
/cs/psv/oauth/token RIGHT_EVERYONE
/fs/res/publication/documentTypes/book
/fs/res/publication/documentTypes/article
/fs/res/publication/globalIdentifierType
/fs/res/state/publication
/cs/sys/values/languageValue RIGHT_IS_LOGGED_IN
/cs/sys/values/peerReviewedValue
/cs/sys/values/publicationAccessTypeValue
/cs/sys/values/publicationCreatorTypeValue
/cs/sys/values/publicationResourceValue
/cs/sys/values/publicationTypeValue
/cs/sys/values/qualificationThesisValue
/cs/sys/values/researchAreaKdsfValue
/cs/sys/values/subjectAreaValue
/cs/sys/values/visibilityValue
/cs/psv/person/identifier RIGHT_CS_PSV_PERSON_VIEW_PERSON_IDENTIFIER
RIGHT_CS_PSV_PERSON_VIEW_PERSON_MAINDATA
/fs/res/wrapped/publisher RIGHT_FS_RES_PUBLICATION_VIEW_PUBLISHER
/fs/res/publisher/ RIGHT_FS_RES_PUBLICATION_EDIT_PUBLISHER
/v1/fs/res/journal RIGHT_FS_RES_PUBLICATION_CREATE_JOURNAL
RIGHT_FS_RES_PUBLICATION_CREATE_JOURNAL_FROM_MENU
RIGHT_FS_RES_PUBLICATION_VIEW_JOURNAL
/fs/res/publication RIGHT_FS_RES_PUBLICATION_CREATE_PUBLICATION
RIGHT_FS_RES_PUBLICATION_VIEW_PUBLICATION
RIGHT_FS_RES_PUBLICATION_VIEW_PUBLICATION_OWN
RIGHT_FS_RES_PUBLICATION_VIEW_PUBLICATION_BY_TYPE
RIGHT_FS_RES_PUBLICATION_VIEW_PUBLICATION_VISIBLE
/fs/res/conference RIGHT_FS_RES_PUBLICATION_CREATE_CONFERENCE
RIGHT_FS_RES_PUBLICATION_CREATE_CONFERENCE_FROM_MENU
RIGHT_FS_RES_PUBLICATION_VIEW_CONFERENCE
RIGHT_FS_RES_PUBLICATION_EDIT_CONFERENCE
@Possommi Possommi self-assigned this Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
…mer res-json-detailed

Configured transformer res-json-detailed
Possommi added a commit that referenced this issue Jun 12, 2024
@Possommi Possommi linked a pull request Jun 12, 2024 that will close this issue
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 12, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 13, 2024
Possommi added a commit that referenced this issue Jun 14, 2024
Possommi added a commit that referenced this issue Jun 14, 2024
…mer res-json-detailed

Configured transformer res-json-detailed
Possommi added a commit that referenced this issue Jun 14, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
Possommi added a commit that referenced this issue Dec 13, 2024
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

Successfully merging a pull request may close this issue.

1 participant