gwt-oauth2 | #SDK | OAuth 2.0 Library for GWT

 by   freddyboucher Java Updated: 1 year ago - Current License: Apache-2.0

Download this library from

Build Applications

kandi X-RAY | gwt-oauth2 REVIEW AND RATINGS

[gwt-oauth2](gwt-oauth2) : The core library. [sample](sample) : A demo application.

kandi-support
Support

  • gwt-oauth2 has a low active ecosystem.
  • It has 13 star(s) with 5 fork(s).
  • It had no major release in the last 12 months.
  • On average issues are closed in 301 days.
  • It has a neutral sentiment in the developer community.

quality kandi
Quality

  • gwt-oauth2 has no issues reported.

security
Security

  • gwt-oauth2 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

license
License

  • gwt-oauth2 is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.

build
Reuse

  • gwt-oauth2 releases are not available. You will need to build from source code and install.
  • Build file is available. You can build the component from source.
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

gwt-oauth2 Key Features

[gwt-oauth2](gwt-oauth2) : The core library

[sample](sample) : A demo application

1.1

Fix: Avoid Google api.js name collision by renaming oauth2 to gwtOAuth2

1.0

Expose TokenStore and add TokenStore#keySet and TokenStore#remove

1.0-RC2

Fix: Uncaught TypeError: Cannot set property innerText of null

Add viewport meta to have a readable message on Mobile device

1.0-RC1

Update GWT to 2.9.0

Migrate JSNI to JsInterop / elemental2

0.5

Map<String, String> result - values are still URL encoded #10

0.4

Map<String, String> result - values are URL encoded #8

Callback is never consumed when manually closing the login window #9

0.3

Initial release

gwt-oauth2 examples and code snippets

  • default

default

1\. Add the Maven dependency
```xml
<dependency>
  <groupId>io.github.freddyboucher</groupId>
  <artifactId>gwt-oauth2</artifactId>
  <version>1.1</version>
  <scope>provided</scope>
</dependency>
```

2\. Add `<inherits name="io.github.freddyboucher.gwt.oauth2.OAuth2"/>` to your GWT module XML file.

3\. Add the `generateJsInteropExports` compilation option to your project.
If you use the tbroyer's [Maven Plugin for GWT](https://tbroyer.github.io/gwt-maven-plugin/) it should look like:
```xml
<plugin>
  <groupId>net.ltgt.gwt.maven</groupId>
  <artifactId>gwt-maven-plugin</artifactId>
  <configuration>
    <compilerArgs>
      <arg>-generateJsInteropExports</arg>
    </compilerArgs>
    <codeserverArgs>
      <arg>-generateJsInteropExports</arg>
    </codeserverArgs>
  </configuration>
</plugin>
```

4\. 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<Map<String, String>, Throwable>() {
        @Override
        public void onFailure(Throwable reason) {
          GWT.log(null, reason);
        }

        @Override
        public void onSuccess(Map<String, String> result) {
          String token = result.get("access_token");
          GWT.log(token);
        }
      }, "access_token");
    });
    RootPanel.get().add(button);
  }
}
```

Release Notes

COMMUNITY DISCUSSIONS

No Community Discussions are available at this moment for gwt-oauth2.Refer to stack overflow page for discussions.

No Community Discussions are available at this moment for gwt-oauth2.Refer to stack overflow page for discussions.

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

VULNERABILITIES

No vulnerabilities reported

INSTALL gwt-oauth2

You can use gwt-oauth2 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the gwt-oauth2 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

SUPPORT

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

Implement gwt-oauth2 faster with kandi.

  • Use the support, quality, security, license, reuse scores and reviewed functions to confirm the fit for your project.
  • Use the, Q & A, Installation and Support guides to implement faster.

Discover Millions of Libraries and
Pre-built Use Cases on kandi