New theme type in keycloak - keycloak

I want to use Keycloak to secure a Java Spring application and I can't find resources if you are able to create a new view (theme type), not customize an existing one, and add it to keycloak customizable themes types.

You can created themes for keycloak from scratch and there are some themes you can download as well, just search the web.
As for the spring part, the way this is done is read the client cookies/headers on each request and call the keycloak API to validate them. Or you can use a library than can do this for you, in my first project with keycloak I followed this guide and it worked fine.

Related

How to make pluggable architecture ASP.NET5/MVC 6?

I want to build an web application(ASP.NET MVC 6) that can add modules/plugins without having to rewrite my source code.
Already read about MEF and Areas but are not helping much.
Someone who has overcome this problem that can help me?
Depends on which part of the web application you are targeting.
1.If it's in the request pipeline you would make a Middleware package.
2.It's it's in HTML you would make a TAG Helper package.
3.If it's an intrinsic functionality you would extend appropriate classes and throw them into a package. An example of this would be helpful extension methods or methods to add claims given a claims principal.
4.If you want to go even further you could create your own Visual Studio templates that you can use to pre-fill your options upon creation.

Dynamics crm 2011 online - how to create a custom code that is run once?

I want to create a dynamics crm solution that will be imported by the customer.
After import, the user must complete some settings in a custom entity. After this, a specific code must run for these new settings, but only once. I cannot use custom workflows because it has to work in the online crm too.
The best would have been to have a synchronous plugin that is registered to execute when the settings are saved. I cannot do this because plugins can be registered for a limited set of entities, custom entities are not supported (am I right on this?).
What alternatives do I have?
Using a Configuration Page for your solution might make it easier for the user to configure. Instead of making the user manually set up a configuration entity, use Javascript in the Configuration Page web resource to hit the REST endpoint and do the setup for you. You might also be able to run your custom setup code using Javascript (or use a plugin on the configuration entity as ckeller has confirmed). Here's a link about the special Configuration Page:
http://mahenderpal.wordpress.com/2011/07/26/step-by-step-adding-configuration-page-in-solution-ms-crm-2011/

Use of Orbeon Forms into Liferay

I wanted to know how Orbeon Forms work in Liferay because the Web Forms portlet is very limited, so I visited Orbeon's website and read its documentation. Then I downloaded it and ran in a Tomcat server, I built a form with the Form Builder and then tried it with the Form Runner.
My question is, how can I export one of the forms I created with the Form Builder to include it in Liferay as a portlet for example? Is that possible? Can I export a form into a WAR for example and then deploy it into Liferay?
I know you can deploy Orbeon Forms into liferay but I only want to include a specific form, not all the application with the Form Builder, the examples etc.
Could anyone help me?
First, a clarification: if what you mean is that you just want "the form", in the sense of just the XHTML, that can't work because any form built with Orbeon Forms needs a runtime to function. If the form is created with Form Builder, that means the Form Runner runtime. Either way you will need an Orbeon Forms portlet or servlet.
The forms you create, when published, are stored into a database. By default this is the built-in eXist XML database, but you can use Oracle, MySQL, or your custom persistence layer.
In order to see forms in Liferay, you have two possibilities:
The Form Runner Liferay proxy portlet
The full Orbeon Forms portlet
I recommend you peruse these two pages for details.
How it works depends on which type of portlet you use.
If using the proxy portlet, then the portlet is very lightweight and just forwards requests to a separate webapp running the Form Runner runtime. You configure the portlet to point to a specific form.
If using the full portlet, then Form Runner runs directly as a portlet. Here the portlet will load a landing page, and you probably will want to modify that landing page to point to the forms you want your users to see.
In both cases, your published form will be found as long as Form Runner points to the right database.
In your case it seems like the proxy portlet might be your best option. Note that lots of bug fixes have taken place with the proxy portlet since 3.9, so I would recommend a nightly build. For reference here is the source of the proxy portlet.

Web based plugin architecture for simple user interfaces

I have a web based application using Primefaces with a very basic plug-in like architecture. The configuration of these plug-ins was all handled with xml, which is not so user friendly system.
I would now like to allow for each plug-in to be configurable via the web application, what are my options?
I have looked into Portals and Portlets but that seems like a rather big change to my application and my plug-ins do not require such complex user interfaces, a textbox or two of configuration is more than enough.
Does anyone have any suggestions or advice and what would be the best route here?
Create a simple page , per plugin that read the XML file, parse the option that you want to change , present it to the user with a simple interface, and save back the XML file.
Take care of the saving part and password-protect this page!

2005 web service that I cannot consume in 3.5 app

When I look at the .asmx page in the browser I see:
The following operations are supported. For a formal definition, please review the Service Description.
AcceptCaseInformation
ClearServiceErrors
CreateBatch
GetBookingsOnIndictment
GetCaseInformation
GetCasesForJacket
When I reference the asmx file in my project I do not see these web methods. I see the complete set of methods in the Reference.cs.
JSSTester.GrandJuryService.GetBookingsOnIndictmentRequest
JSSTester.GrandJuryService.GetBookingsOnIndictmentRequestBody
JSSTester.GrandJuryService.GetBookingsOnIndictmentResponse
What am I not setting to allow me to see the WebMethods for that asmx page?
TIA
If I'm following your process, you're using the "Add Service Reference" option through your project in Visual Studio.
By default, the 3.5 apps want to leverage the newer WCF framework, which doesn't use the older web service architecture found in your ASMX style pages. However, you can still add the older services, it just takes a little more work.
When this dialog opens up, there should be a button at the bottom at the page that says "Add Web Reference." Click this button and it should expose the "legacy" methods that are available.
In general, it should not be necessary to use the "Advanced" button and to revert to a Web Reference. In general, any standard web service created using VS2005 should be consumable via a Service Reference with no trouble at all.
Is your service created using WSE? Does it contain references to Microsoft.Web.Services3? In that case, you don't have a standard VS2005 web service - you have an obsolete WSE service, and you will need to look more closely to see what the problem is.