I am new to Apache Shiro. I know the basic concepts of SSO.
I need to create a POC (at my localhost using Tomcat) for SSO something similar to mentioned at http://shiro.apache.org/cas.html
I am not sure how and where to start.
When I downloaded source code "shiro-root-1.2.3" I saw there are many sample projects and cas is also there.
Kindly help me and let me know if there are any step by step instructions for implementing SSO?
I could run web and spring projects using "mvn clean jetty:run" command and "samples/quickstart" project using "mvn compile exec:java" command.
I could not find the way to run "cas" project.
Please let me know how to run existing cas project and use that in web/spring projects?
Regards,
Krishan Babbar
The people at Stormpath have written a very detailed explanation on how to achieve SSO with Shiro for their product. I am sure the steps will be almost identical in your case.
Here it is: https://support.stormpath.com/hc/en-us/articles/203815036-Can-I-SSO-between-multiple-Wars-in-the-same-servlet-with-Stormpath-and-Apache-Shiro-
Related
I am new in liferay want to perform crud operation using service builder so i want to understand need & use of apache felix web console bundle in liferay 7.1 so that i use it in order to check json/webservice api.
I would say you are not looking at the right tool for the job.
The console enables you to interact with the OSGi framework, a good place to start is not on the console but on the file systems if you are looking into understanding how Liferay uses the framework. The framework is embedded into the web app in order to provide the environment where bundles can live and provide services collectively.
Gogo is an auxiliary tool that enables interaction, you can query if bundles are installed, check the dependencies that you missed and who is providing a certain service or exposing a package.
Most of day-to-day of this kind of information you can also find in the app manager and/or logs.
About testing you api, I assume you are looking for seeing if it was installed and if it was resolved and activated. The app managers can provide the first clue for this, but gogo is an adequate tool as well, you will need to learn its commands and syntax. Do not worry they are trivial, you can find a description on the Apache's project page an on Liferay's dev guide.
Now, if you are looking to test the API for correctives or availability, using gogo will demand custom commands and lots of extra logic other tools provide for you.
I found corresponding nuget package in visual studio, but my client is not c#. As i am new to SSO concept i am having trouble to get things started. Any help in this regard would be good.
thanks in advance.
We (disclaimer: I work for Ping) have a great "how to" article that should give you all the considerations and option for how to SSO enable your application regardless of the language and framework you've built it with.
Please have a read here: https://www.pingidentity.com/content/developer/en/resources/application-integration-overview.html
I am building an AngularJS web application with Java as backend.When I look for an end to end testing framework, Protractor found to be a better option.But it is highly dependent on node.js(since it's built on top ofnode). Is that correct?
what I need is , I want to run Protractor with maven and tomcat. Can we run it without the dependency of node.js?
No, Protractor is dependent on Node.js So you have to use it.
There are two separate questions:
Can you run protractor without node? The answer is no. Protractor is a node project and requires node dependencies.
Can you use Protractor in a maven project? The answer is yes. I have not tried it but I've seen community members comment on this. A quick search to maven and protractor, I came across this stackoverflow for maven + protractor with the corresponding maven plugin project on github.
I hit this question since I'm wrestling with the same problem. This is what I've figured out.
Protractor (and Karma for the jsunit testing of Angular) requires node, but this isn't a large obstacle since you can pull in and install node using Maven, and use it to pull in yarn to get angular setup and built at deploy and test time. It is also possible to set up a proxy server from the node server to the Spring Boot App so that the REST endpoints will work.
What I want (and what I'm guessing the original poster wants) is to figure out a way to start up protractor without starting the node server. I don't want that server started because as part of the end to end testing I want to verify the spring app is serving the necessary static files correctly, not just the REST endpoints.
If I find an answer I'll update this.
I've always used eclipse before, but I'm using Netbeans for the first time because of it's integration with Web Service clients.
However, after following multiple tutorials, the way to add a web service client is to:
https://netbeans.org/kb/docs/websvc/flower_swing.html
Make a new project
Right click on your project, New->Other->Other->Web Service Client
However, I do not have the web service client option available, not sure what I am doing wrong.
Please mention the net beans version you have. You should use newer version of the IDE to use latest features.
For other developers who will face this problem like me, I will leave my answer here.
I'm currently using Apache NetBeans IDE 11.0 and it's in Web Services -> Web Service Client. If you still cannot find it, just use filter feature. I found it with filter.
i have installed the glassfish eclipse tools bundle...
i can start a project like dynamic web & a ear project and deploy them on the glassfish... it works perfect & under the localhost url i will get an hello world
but how i do this if i want to make an application client. please help...
at the moment i simply created an "app client project in eclipse" & added it to the same ear,
but i have no idea how to start this...
help - any tutorial how to start?!!
Not the only only answer to this question but the appclient approach mentioned in Jeff's answer is a viable approach, but I was able to execute a client using this mechanism in eclipse and I wanted to share that approach.
This approach will let you execute a java application with a main method acting as a client.
What you want to do is setup an External Tools Configuration.
Create a new Program type of external tool configuration.
Set location to point to the path of the appclient, for me
(using embedded glassfish eclipse plugin) it was [PATH TO ECLIPSE]\plugins\oracle.eclipse.runtime.glassfish_3.1.1.0\glassfish3\glassfish\bin\appclient.bat
Set working directory to your output/build directory e.g.
${project_loc}/target/classes
Set arguments to ${java_type_name}
Select the class in your project with a main method that you wish to run as the client app and then select your external tool from the run external tools menu.
There are two ways to do it. I'm afraid I can't be very specific, but I can point you in the right direction. (I'm just learning myself)
You can enable Web Start for the application client EAR in GlassFish. You can do this either in the deployment descriptor (so it's enabled every time you deploy) or you can go into the GlassFish admin console, navigate to the Application, and check the checkbox to enable it. I have made a little progress on this approach.
You can run it manually from the command line using, I believe, the "appclient" command. I have not been able to get this working yet.
Good luck, and if you learn more, I'd appreciate it if you let me know since I'm in the same boat as you.
Jeff