-
Notifications
You must be signed in to change notification settings - Fork 3
User Info
Eliza Margaretha edited this page May 22, 2023
·
2 revisions
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
Header Parameter
Name | Required | Authentication scheme | Value |
---|---|---|---|
Authorization | yes | HTTP authentication with scheme: Bearer | OAuth2 access token |
curl -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTM1MzI3O'
http://localhost:8089/api/v1.0/user/info
Response
{
"username" : "dory"
}
- OAuth2 client registration
- OAuth2 client info
- OAuth2 client deregistration
- OAuth2 client secret reset
- Plugin registration
- Plugin list (Marketplace)
- Plugin installation
- Plugin uninstallation
- Installed plugin list
- User group creation
- User group deletion
- User group list
- Member invitation
- Member deletion
- Approval of member invitation
- Rejection of member invitation
- Member role management
- Virtual corpus creation and update
- Virtual corpus deletion
- Virtual corpus list
- Virtual corpus retrieval
- Virtual corpus statistics
- Virtual corpus statistics with KoralQuery