azure-auth-filter

Azure auth filter.

License

License

GroupId

GroupId

fun.mike
ArtifactId

ArtifactId

azure-auth-filter-alpha
Last Version

Last Version

0.0.13
Release Date

Release Date

Type

Type

jar
Description

Description

azure-auth-filter
Azure auth filter.
Project URL

Project URL

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

Source Code Management

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

Download azure-auth-filter-alpha

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
javax.ws.rs : javax.ws.rs-api jar 2.1.1
javax.annotation : javax.annotation-api jar 1.3.2
fun.mike : azure-auth-alpha jar 0.0.12
org.slf4j : slf4j-api jar 1.8.0-beta2

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

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.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1