azure-auth

Azure auth.

License

License

GroupId

GroupId

fun.mike
ArtifactId

ArtifactId

azure-auth-alpha
Last Version

Last Version

0.0.12
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-alpha

How to add to project

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

Dependencies

compile (2)

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

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.0.12
0.0.11
0.0.10
0.0.8
0.0.7
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1