func (c *LoginController) Linkcallback(ctx *app.LinkcallbackLoginContext) error {
	brokerEndpoint, err := c.configuration.GetKeycloakEndpointBroker(ctx.RequestData)
	if err != nil {
		log.Error(ctx, map[string]interface{}{
			"err": err,
		}, "Unable to get Keycloak broker endpoint URL")
		return jsonapi.JSONErrorResponse(ctx, errors.NewInternalError("unable to get Keycloak broker endpoint URL "+err.Error()))
	}
	clientID := c.configuration.GetKeycloakClientID()

	return c.auth.LinkCallback(ctx, brokerEndpoint, clientID)
}
// Linkcallback redirects to original referel when Identity Provider account are linked to the user account
Linkcallback redirects to original referel when Identity Provider account are linked to the user account
// Linkcallback redirects to original referel when Identity Provider account are linked to the user account
func (c *LoginController) Linkcallback(ctx *app.LinkcallbackLoginContext) error {
	brokerEndpoint, err := c.configuration.GetKeycloakEndpointBroker(ctx.RequestData)
	if err != nil {
		log.Error(ctx, map[string]interface{}{
			"err": err,
		}, "Unable to get Keycloak broker endpoint URL")
		return jsonapi.JSONErrorResponse(ctx, errors.NewInternalError("unable to get Keycloak broker endpoint URL "+err.Error()))
	}
	clientID := c.configuration.GetKeycloakClientID()
	return c.auth.LinkCallback(ctx, brokerEndpoint, clientID)
}
func ( c * LoginController ) Linkcallback ( ctx * app . LinkcallbackLoginContext ) error { brokerEndpoint , err := c . configuration . GetKeycloakEndpointBroker ( ctx . RequestData ) if err != nil { log . Error ( ctx , map [ string ] interface { } { " " : err , } , " " ) return jsonapi . JSONErrorResponse ( ctx , errors . NewInternalError ( " " + err . Error ( ) ) ) } clientID := c . configuration . GetKeycloakClientID ( ) return c . auth . LinkCallback ( ctx , brokerEndpoint , clientID ) }
Linkcallback redirects to original referel when Identity Provider account are linked to the user account
Linkcallback redirects to original referel when Identity Provider account are linked to the user account