public interface IdentityServiceClient extends IdentityAccessService
Modifier and Type | Method and Description |
---|---|
default GbifUser |
authenticate(String userName,
String password)
Authenticates a user.
|
GbifUser |
get(String userName)
Get a
GbifUser by identifier (username or email). |
static IdentityServiceClient |
getInstance(String apiUrl,
String userName,
String password)
Creates an instance suitable to be used by an admin user.
|
static IdentityServiceClient |
getInstance(String apiUrl,
String userName,
String appKey,
String secretKey)
Creates an instance suitable to be used by a registered application.
|
LoggedUser |
login(String credentials) |
@GetMapping(value="admin/user/{userName}", produces="application/json") @ResponseBody GbifUser get(@PathVariable(value="userName") String userName)
IdentityAccessService
GbifUser
by identifier (username or email).get
in interface IdentityAccessService
userName
- username or emaildefault GbifUser authenticate(String userName, String password)
IdentityAccessService
authenticate
in interface IdentityAccessService
userName
- username or emailpassword
- clear text password@PostMapping(value="user/login", produces="application/json") @ResponseBody LoggedUser login(@RequestHeader(value="Authorization") String credentials)
static IdentityServiceClient getInstance(String apiUrl, String userName, String appKey, String secretKey)
static IdentityServiceClient getInstance(String apiUrl, String userName, String password)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.