azure-auth

Azure auth.

License

License

GroupId

GroupId

fun.mike
ArtifactId

ArtifactId

azure-auth
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

azure-auth
Azure auth.
Project URL

Project URL

https://github.com/mike706574/java-azure-auth
Source Code Management

Source Code Management

http://github.com/mike706574/java-azure-auth-filter/tree/master

Download azure-auth

How to add to project

<!-- https://jarcasting.com/artifacts/fun.mike/azure-auth/ -->
<dependency>
    <groupId>fun.mike</groupId>
    <artifactId>azure-auth</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/fun.mike/azure-auth/
implementation 'fun.mike:azure-auth:0.1.0'
// https://jarcasting.com/artifacts/fun.mike/azure-auth/
implementation ("fun.mike:azure-auth:0.1.0")
'fun.mike:azure-auth:jar:0.1.0'
<dependency org="fun.mike" name="azure-auth" rev="0.1.0">
  <artifact name="azure-auth" type="jar" />
</dependency>
@Grapes(
@Grab(group='fun.mike', module='azure-auth', version='0.1.0')
)
libraryDependencies += "fun.mike" % "azure-auth" % "0.1.0"
[fun.mike/azure-auth "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.nimbusds : oauth2-oidc-sdk jar 6.5
com.nimbusds : nimbus-jose-jwt jar 6.5.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
fun.mike : io-support-alpha jar 0.0.13

Project Modules

There are no modules declared in this project.

azure-auth-filter-alpha

Maven Central Javadocs

JAX-RS Azure OpenID Connect auth filter.

Usage

With Dropwizard:

import fun.mike.azure.auth.alpha.AzureAuthFilter;
import io.dropwizard.auth.AuthDynamicFeature;
import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature;

final String tenantId = "c834c34e-bbd3-4ea1-c2c2-51daeff91aa32";
final String clientId = "ae33c32e-d2f2-4992-a4b2-51d03e7c8677";

AzureAuthFilter azureAuthFilter = AzureAuthFilterFactory.simple(tenantId, clientId);

environment.jersey().register(new AuthDynamicFeature(azureAuthFilter));
environment.jersey().register(RolesAllowedDynamicFeature.class);

Tweak appropriately for your web framework of choice.

Build

CircleCI

Copyright and License

This project is licensed under the terms of the Apache 2.0 license.

Versions

Version
0.1.0