Skip to content

User Info

Eliza Margaretha edited this page May 22, 2023 · 2 revisions

** WARNING: This service is experimental and may change without any notice.

This web-service returns the username of the authenticated user. An OAuth2 client may need to this information, e.g. to use virtual corpus web-services. Usernames are used in KorAP as part of URLs defining virtual corpus location in the web (see Virtual corpus creation).

This web-service requires OAuth2 authorization scope user_info. OAuth2 clients can ask users for the scope when sending OAuth2 authorization requests.

Available in: full version

Method: GET

Service URL: root/user/info

OAuth2 scope: user_info

Parameters

Header Parameter

Name Required Authentication scheme Value
Authorization yes HTTP authentication with scheme: Bearer OAuth2 access token

Examples

curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTM1MzI3O'
      http://localhost:8089/api/v1.0/user/info

Response

{
  "username" : "dory"
}

Advanced Setting

Developer Setting

Search services

Metadata services

Authentication and Authorization services

Client services

Super client services

Plugin services

User services

User group services

Virtual corpus services

Virtual corpus access services

Administrative services

Description services

Clone this wiki locally