Comments (1)
I made a small test : just adding a getter (getOpener()) in OAuthPopupButton class
So a GoogleButton class could be :
public class GoogleButton extends OAuthPopupButton
{
private static final long serialVersionUID = 1L;
public GoogleButton(String scope, String key, String secret)
{
super(GoogleApi.class, key, secret);
getOpener().setScope(scope);
setIcon(new ExternalResource("https://ssl.gstatic.com/accounts/ui/logo_strip_2x.png"));
setCaption("GMAIL");
}
}
Then creating button :
String GOOGLE_SCOPE_DOCUMENTS = "https://docs.google.com/feeds/default/private/full/";
GoogleButton obGoogle = new GoogleButton(GOOGLE_SCOPE_CARDDAV, APIKEY,
SECRETKEY);
Nice, it's working 👍
Feel free to optimize or include (i'm not fluent enough with pull requests)
Regards
Sebastien.
from vaadin-oauthpopup.
Related Issues (10)
- OAuth-Popup v. 0.0.2 seems not available on Addons repository HOT 3
- Add support for Google OAuth2 HOT 3
- Pass OAuth2 access token raw response to the application HOT 3
- Needed to add vaadin-client-compiled maven dependecy
- The button doesn't get added
- Profile pic?
- Upgrade to ScribeJava 2.4.0 HOT 2
- Failed to load the bootstrap javascript: ./../VAADIN/vaadinBootstrap.js?v=7.6.4 HOT 1
- Facebook has changed the Token return to JSON format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vaadin-oauthpopup.