jwt-java-client

JWT Java Client

License

License

Categories

Categories

Java Languages H2 Data Databases OAuth2 Security CLI User Interface
GroupId

GroupId

com.clouway.oauth2
ArtifactId

ArtifactId

jwt-java-client
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

jwt-java-client
JWT Java Client
Project URL

Project URL

https://github.com/clouway/jwt-java-client
Source Code Management

Source Code Management

https://github.com/clouway/jwt-java-client

Download jwt-java-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.clouway.oauth2/jwt-java-client/ -->
<dependency>
    <groupId>com.clouway.oauth2</groupId>
    <artifactId>jwt-java-client</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.clouway.oauth2/jwt-java-client/
implementation 'com.clouway.oauth2:jwt-java-client:0.0.1'
// https://jarcasting.com/artifacts/com.clouway.oauth2/jwt-java-client/
implementation ("com.clouway.oauth2:jwt-java-client:0.0.1")
'com.clouway.oauth2:jwt-java-client:jar:0.0.1'
<dependency org="com.clouway.oauth2" name="jwt-java-client" rev="0.0.1">
  <artifact name="jwt-java-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.clouway.oauth2', module='jwt-java-client', version='0.0.1')
)
libraryDependencies += "com.clouway.oauth2" % "jwt-java-client" % "0.0.1"
[com.clouway.oauth2/jwt-java-client "0.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

JWT Java Clients for OAuth2

A Client library for OAuth2 which uses JWT for the generation of access tokens.

OkHttp adapter

  JwtConfig config = new JwtConfig.Builder(
              "jwt email",
              "token endpoint",
              "jwt key")
              .subject("myapp ")
              .build();

  OkHttpClient client = new OkHttpClient.Builder()
    .addInterceptor(
        BearerJwtAuthenticationInterceptor.newInterceptor(
          config
        )
    ).build();  

   // do HTTP call

Google HTTP Client adapter

  JwtConfig config = new JwtConfig.Builder(
              "jwt email",
              "token endpoint",
              "jwt key")
              .subject("myapp ")
              .build();

   NetHttpTransport transport = new NetHttpTransport();
      
   HttpRequestFactory requestFactory = transport.createRequestFactory(
      BearerJwtAuthenticationInterceptor.newInterceptor(config, transport)
   );
  
  // do HTTP call

Maven dependency

    <dependency>
      <groupId>com.clouway.security</groupId>
      <artifactId>jwt-java-client-okhttp</artifactId>
      <version>0.0.2</version>
    </dependency>

Gradle dependency

    compile 'com.clouway.security:jwt-java-client-okhttp:0.0.2'
    compile 'com.clouway.security:jwt-java-client-google:0.0.2'

License

Copyright 2017 clouWay ood.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

com.clouway.oauth2

clouWay ood

Versions

Version
0.0.1