Class LinkedAccountsResource
java.lang.Object
org.keycloak.services.resources.account.LinkedAccountsResource
API for linking/unlinking social login accounts
- Author:
- Stan Silvert
-
Constructor Summary
ConstructorDescriptionLinkedAccountsResource
(KeycloakSession session, HttpRequest request, Auth auth, EventBuilder event, UserModel user) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
buildLinkedAccountURI
(String providerId, String redirectUri) Deprecated.getLinkedAccounts
(KeycloakSession session, RealmModel realm, UserModel user) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
removeLinkedAccount
(String providerId)
-
Constructor Details
-
LinkedAccountsResource
public LinkedAccountsResource(KeycloakSession session, HttpRequest request, Auth auth, EventBuilder event, UserModel user)
-
-
Method Details
-
linkedAccounts
@GET @Path("/") @Produces("application/json") public jakarta.ws.rs.core.Response linkedAccounts() -
getLinkedAccounts
public SortedSet<LinkedAccountRepresentation> getLinkedAccounts(KeycloakSession session, RealmModel realm, UserModel user) -
buildLinkedAccountURI
@GET @Path("/{providerId}") @Produces("application/json") @Deprecated public jakarta.ws.rs.core.Response buildLinkedAccountURI(@PathParam("providerId") String providerId, @QueryParam("redirectUri") String redirectUri) Deprecated. -
removeLinkedAccount
@DELETE @Path("/{providerId}") @Produces("application/json") public jakarta.ws.rs.core.Response removeLinkedAccount(@PathParam("providerId") String providerId)
-