# gwt-oauth2 **Repository Path**: mirrors_jbaysolutions/gwt-oauth2 ## Basic Information - **Project Name**: gwt-oauth2 - **Description**: OAuth 2.0 Library for GWT (Google Web Toolkit) - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README gwt-oauth2 ========== * [gwt-oauth2](gwt-oauth2) : The core library * [sample](sample) : A demo application Live demo: [https://gwt-oauth2.appspot.com/](https://gwt-oauth2.appspot.com/) Quick start ------------- 1\. Add the Maven denpendency ```xml io.github.freddyboucher gwt-oauth2 0.3 provided ``` 2\. Add `` to your GWT module XML file. 3\. Use it as follow: ```java public class App implements EntryPoint { @Override public void onModuleLoad() { Button button = new Button("Google", (ClickHandler) event -> { AuthRequest req = new AuthRequest("https", "accounts.google.com", "o/oauth2/auth", "GOOGLE_CLIENT_ID") .setParameter("scope", "email profile openid"); Auth.get().login(req, new Callback, Throwable>() { @Override public void onFailure(Throwable reason) { GWT.log(null, reason); } @Override public void onSuccess(Map result) { String token = result.get("access_token"); GWT.log(token); } }, "access_token"); }); RootPanel.get().add(button); } } ``` Contributing ------------- Code must pass [Google Java Style Guide](https://checkstyle.sourceforge.io/styleguides/google-java-style-20180523/javaguide.html).