This library handles the server 2 server tokens from and OIDC provider.
Add the following maven dependency to your project pom.xml
:
<dependency>
<groupId>com.premiumminds.oidc</groupId>
<artifactId>oidc-token-manager</artifactId>
<version>1.2</version>
</dependency>
Check out sonatype repository for latest snapshots and releases.
Include the Nimbus OAuth 2.0 SDK with OpenID Connect extensions to your maven project.
TokenManager<BearerAccessToken> tokenManager =
new NimbusOIDCTokenManagerBuilder(new URI("http://provider/token"), "client_id")
.clientSecret("client_secret").build();
BearerAccessToken token = tokenManager.getAccessToken();
Copyright (C) 2020 Premium Minds
Licensed under the GNU Lesser General Public Licence