Is there any example out there for google plus oAuth2 for grails?
I see a plugin on github with documentation
This one seems to be 2 years old and I could not find any examples of using this plugin.
I am willing to try this. but want to know if there are any other plugins out there which are up-to-date?
I have had success using this one: http://grails.org/plugin/spring-security-oauth-google, but it requires the use of the Spring Security Oauth Plugin: http://grails.org/plugin/spring-security-oauth
Related
One of my project is using Apache Wicket 6.x and I have some API (resources) using wicketstuff-rest and it is working perfectly.
But for my API documentations, I am maintaining a google document for these APIs. Problem is that whenever there are changes in any of the API, or even on new APIs... I need to update this API documentation. Chances are, this documentation may not be updated.
On my other springboot projects, I am using swagger and the API documentation can be viewed via swagger-ui.
I wonder if I can use swagger-ui with existing apache wicket 6.x project so that whenever there are new API(s) or any change on the existing API(s)... it will reflect in swagger-ui without the need to maintain any API documentation.
What I currently search is swagger2markup, but this seems to be old and I am having problems with the setup and there are very few resources on how to set this up.
Anyone who successfully setup swagger-ui with apache wicket rest?
Care to share resource/links on tutorials or how to setup swagger-ui on apache wicket rest?
Thanks!
I don't have an easy solution for you with Swagger but if you use Spring already then you could use Spring REST Docs to generate the documentation from the unit tests.
I am attempting to use the Grails Spring Security Core plugin. I would like to override the login functionality, which is 'login/authenticate'. I searched through the spring-security-core plugin source and wasn't able to find the 'authenticate' method, and its not in the generated LoginController.
https://github.com/grails-plugins/grails-spring-security-core/blob/master/grails-app/controllers/grails/plugin/springsecurity/LoginController.groovy
Any guidance would be most appreciated. Thank you in advance.
Spring security is built around filter chains. The correct way would be to create a new filter. You probably need to download the spring grails security core plugin and look at classes like GrailsUsernamePasswordAuthenticationFilter to get a feel for how to do it. Your way forward might be to copy GrailsUsernamePasswordAuthenticationFilter, install it as your authentication filter, and put logging in there.
I am developing an html5 hybrid app which needs to access an oauth2 api.
I am looking what should be the best plugin I should use to implement this task.
Based on my research, I've found two possible plugins which are "ChildBrowser and InAppBrowser".
What plugin should I use? Currently, I'm picking up the "ChildBrowser" in which I tried to follow using the below link.
https://github.com/andreassolberg/jso/blob/master/README-Phonegap.md
It seems that the documentation is quite not updated (ex. Cordova.plist was removed and use the config.xml instead).
I've followed the instruction step by step on the above link until "Setting up your WebApp with ChildBrowser" and I get build error.
You can use Cordova's InAppBrowser and do Oauth2 login using this jQuery plugin:
https://github.com/krisrak/jquery-cordova-oauth2
There is a working example for phonegap.
I am working on a grails project and i need a plugin to extract an email attachment from a Gmail account.
My colleague said something about Java Mail API but i am not actually sure about how to integrate the api with grails.
Is there any other plugin or workaround to extract an email attachment from a gmail account?
Thanks.
While not specific to extracting attachments from GMail, the Grails Routing plugin would definitely be worth evaluating. It integrates Apache Camel into your Grails services and controllers and provides a very easy way to create routes. You can then add the following dependency to your grails-app/BuildConfig.groovy file:
// replace x.x.x with version used by the Grails Routing plugin
runtime("org.apache.camel:camel-mail:x.x.x")
In the documentation for the Mail component you will an example of grabbing attachments from GMail and there is also this blog entry by Mr Haki that shows an example using the older Grails Camel plugin (Routing plugin supercedes it).
While I haven't used Camel for this purpose, I have used it on a few projects and would recommend it as a possible solution. It is a very powerful integration tool and can really make it very easy to do some pretty complicated things.
in a struts application, I have a filter that forces certain pages to be accessed only over https via redirection. I'm thinking in porting it to grails so my question is: In the this environment, is there a "grails" way to implement such filter or is it similar/the same as I did ? Thanks
The Spring Security core plugin has support for this. See section 17 - "Channel security"