func (keycloak *KeycloakOAuthProvider) LinkSession(ctx *app.LinksessionLoginContext, brokerEndpoint string, clientID string, validRedirectURL string) error {
	if ctx.SessionState == nil || ctx.ClientSession == nil {
		return jsonapi.JSONErrorResponse(ctx, goa.ErrBadRequest("Authorization header or session state and client session params are required"))
	}
	return keycloak.linkAccountToProviders(ctx, ctx.RequestData, ctx.ResponseData, ctx.Redirect, ctx.Provider, *ctx.SessionState, *ctx.ClientSession, brokerEndpoint, clientID, validRedirectURL)
}
// LinkSession links identity provider(s) to the user's account using session state
LinkSession links identity provider(s) to the user's account using session state
// LinkSession links identity provider ( s ) to the user ' s account using session state
func (keycloak *KeycloakOAuthProvider) LinkSession(ctx *app.LinksessionLoginContext, brokerEndpoint string, clientID string, validRedirectURL string) error {
	if ctx.SessionState == nil || ctx.ClientSession == nil {
		return jsonapi.JSONErrorResponse(ctx, goa.ErrBadRequest("Authorization header or session state and client session params are required"))
	}
	return keycloak.linkAccountToProviders(ctx, ctx.RequestData, ctx.ResponseData, ctx.Redirect, ctx.Provider, *ctx.SessionState, *ctx.ClientSession, brokerEndpoint, clientID, validRedirectURL)
}
func ( keycloak * KeycloakOAuthProvider ) LinkSession ( ctx * app . LinksessionLoginContext , brokerEndpoint string , clientID string , validRedirectURL string ) error { if ctx . SessionState == nil || ctx . ClientSession == nil { return jsonapi . JSONErrorResponse ( ctx , goa . ErrBadRequest ( " " ) ) } return keycloak . linkAccountToProviders ( ctx , ctx . RequestData , ctx . ResponseData , ctx . Redirect , ctx . Provider , * ctx . SessionState , * ctx . ClientSession , brokerEndpoint , clientID , validRedirectURL ) }
LinkSession links identity provider(s) to the user's account using session state
LinkSession links identity provider ( s ) to the user ' s account using session state