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 providerAlias, String redirectUri) Deprecated.getLinkedAccounts
(KeycloakSession session, RealmModel realm, UserModel user) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
removeLinkedAccount
(String providerAlias)
-
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("/{providerAlias}") @Produces("application/json") @Deprecated public jakarta.ws.rs.core.Response buildLinkedAccountURI(@PathParam("providerAlias") String providerAlias, @QueryParam("redirectUri") String redirectUri) Deprecated. -
removeLinkedAccount
@DELETE @Path("/{providerAlias}") @Produces("application/json") public jakarta.ws.rs.core.Response removeLinkedAccount(@PathParam("providerAlias") String providerAlias)
-