-
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"
}
- Importing Kustvakt to Eclipse
- Installing Lombok
- Setting annotation processors
- Setting a test environment
- HTTP Basic Authentication
- OAuth2 authorization scopes
- OAuth2 authorization request
- OAuth2 token request
- OAuth2 token revocation
- 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
- VC creation and update
- VC deletion
- VC list
- VC info
- VC KoralQuery
- VC statistics
- VC statistics with KoralQuery