I could not find a working sample which shows Spring security ldap/active directory auth. can someone point or share me if anyone knows how to do it.
Try looking at Grant Cermak's Active Directory code here. I have used it and it works great.
http://git.springsource.org/~grantcermak/spring-security/activedirectory-se-security
Related
I am new to Kong and microservice. I am using Kong CE version 0.14.1 and I need to secure an existing API through Oauth2.0 plugin.
I tried to follow the instructions in the documentation kong-oauth2-hello-world provided by Kong.
The problem is when I click on the Authorize button, I always get undefined. I don't get the code that provides the token like the documentation.
I think I missed something or I misunderstood the instraction.
Here the environment variables I used by the Node.js application.
Could anyone help me understand the reason why I get undefined ?
Thank you
I just replaced "openweathermap.org" with "mockbin.org" and it works fine
I'd like to translate the management console to localized language. I've try to follow the instructions from http://wso2.com/library/knowledge-base/2011/11/playing-around-carbon-product-themes/ as a starting point, cause I think that should be in the same theory. But this didn't work, and cause an exception when entering the site.
I see the document is pretty old (2011), is this not work anymore? or the procedure has been changed?
Edit:
sorry, forgot to mention, I'm using WSO2 ESB 4.8.1.
Yes as you have mentioned, above link is outdated. However, the concept is same in new versions as well. Keeping an extracted jar file in the plugins directory will no longer work since we have disabled that along the way as a security fix.
Herewith I have given [1]. the latest documentation of "Customizing the Management Console" of the WSO2 Enterprise Service Bus. You can use it as a starting point.
If you need further help regarding this issue, please let me know.
Thanks,
Upul
[1]. https://docs.wso2.com/display/ESB481/Customizing+the+Management+Console
my project recently opted for LDAP authenctication from HTTP, is it possible to change them with out re-running the steps,. or pls let me know how we can do this.
It is possible, however you need to do some manual steps.
Please check out the following link for some hints (it is for OpenId to LDAP migration, but you need to do some manual work in the same database tables):
https://groups.google.com/forum/#!topic/repo-discuss/VMpG0k119AY
I was searching google a lot these days but I couldn't found proper solution.
In my ASP.NET MVC application I want to use external log in so that the users can log via their google accounts. At first at localhost in AuthConfig.cs file I used:
OAuthWebSecurity.RegisterGoogleClient();
Then when moving on the server I got the error:
So I found a lot of links leading to creating a project on this link and I created one, but I still can not figure out where and how to add the credentials. In my AuthConfig.cs file I have this structure so far:
public static void RegisterAuth()
{
//OAuthWebSecurity.RegisterGoogleClient();
}
and I can not use the format that starts with (I found this i a few places):
app.UseGoogleAuthentication(
clientId: "000-000.apps.googleusercontent.com",
clientSecret: "00000000000");
because that app is not part of my file at all. Can anyone give me a direction how I should continue?
The new OWIN/ASP.NET Identity looks good. I also tried the walk through that DSR mentioned, it is pretty easy.
You can take a look at:
http://www.asp.net/identity
Which has a link to the good walk through about OAuth mentioned in the comments, but also this one, about adding Identity to an existing project:
http://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project
I'm looking for a worked example of how to call into Googles oAuth service with a view to simply uploading a txt file. On googles docs I have the followed the example
http://code.google.com/p/google-api-java-client/wiki/OAuth2
but it won't compile .... CalendarScopes.CALENDAR is the problem and I can't see what Jar contains this class. I imported every Jar in the google-oauth-java-client-1.12.0-beta download (Also every jar in google-api-java-client-1.12.0-beta ) I dobn't understand the diff between these but that is for another day.
Any pointers would be welcome.
CalendarScopes.CALENDAR that you mentioned is not a part of a jar file but a scope for Calendar API provided by Google. For a sample to show how to implement that, here is one.
In the meanwhile, I would also suggest going over the following links to develop an understanding of the OAuth and how to use it with the different APIs.
OAuth Playground - This is very helpful when trying to learn about different API and permissions relating to those.
OpenID Connect Official Documentation
Hope this helps.