social / pragma.account / AccountService / linkIdentityProviderAccountPartnerV1 /
linkIdentityProviderAccountPartnerV1 #
suspend fun linkIdentityProviderAccountPartnerV1(partnerSession: PartnerSession, request: AccountRpc.LinkIdentityProviderAccountPartnerV1Request): AccountRpc.LinkIdentityProviderAccountPartnerV1Response
Associates a new Identity Provider with an existing Pragma account while returning valid authentication tokens.
Plugins
- IdentityProvider.canAuthenticate
- IdentityProvider.validate - PragmaResultErrors returned are just thrown as PragmaExceptions
PragmaApplicationErrors
- AccountRpc.NotFoundApplicationError when the existing Id Provider account data is not a part of a Pragma account.
PragmaResultErrors
- PragmaError.AccountService_IdProviderMissing when trying to use an unknown or unconfigured IdentityProvider.
- PragmaError.AccountService_IdProviderAuthenticationDisabled when trying to use a disabled IdentityProvider.
- PragmaError.AccountService_IdProviderLinkingDisabled when trying to link an Id Provider that has linking disabled.
- PragmaError.AccountService_DuplicateIdProvider when using the same Id Provider for both fields.
- PragmaError.AccountService_IdProviderAlreadyAssociated when the Id Provider account is already associated with a Pragma account.
- PragmaError.AccountService_AccountAlreadyBoundToProviderType when the Pragma account already has the requested Id Provider account associated with it.