Skip to content
Snippets Groups Projects

fix: Ensure user country data is properly fetched from accounts

3 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -38,11 +38,13 @@ public interface DrupalAccountsAPI {
@@ -38,11 +38,13 @@ public interface DrupalAccountsAPI {
* Fetches accounts profile data via username.
* Fetches accounts profile data via username.
*
*
* @param username The given username
* @param username The given username
 
* @param bearerToken the auth token required for this request
* @return AccountsProfileData entity if it exists
* @return AccountsProfileData entity if it exists
*/
*/
@GET
@GET
@Path("{username}")
@Path("{username}")
AccountsProfileData getAccountsProfileByUsername(@PathParam("username") String username);
AccountsProfileData getAccountsProfileByUsername(@PathParam("username") String username,
 
@HeaderParam(HttpHeaderNames.AUTHORIZATION) String bearerToken);
/**
/**
* Fetches accounts profile data via uid. authentication will be removed once Accounts provides an authenticated way to fetch this data
* Fetches accounts profile data via uid. authentication will be removed once Accounts provides an authenticated way to fetch this data
Loading