#active-directory #azure #connect #open-id #oauth2 #oauth #inth-oauth2

inth-oauth2-azure

Azure Active Directory (OpenID Connect) support for the inth-oauth2 crate

1 unstable release

Uses old Rust 2015

0.1.0 Nov 30, 2018

#14 in #active-directory

Unlicense

7KB
57 lines

inth-oauth2-azure

This provides Azure Active Directory (OpenID Connect) support for the inth-oauth2 crate.

Example

extern crate inth_oauth2 as oauth;
extern crate inth_oauth2_azure;

use inth_oauth2_azure::AzureCommon;

let client = oauth::Client::new(
    AzureCommon,
    "client-id".into(),
    "client-secret".into(),
    Some("redirect-uri".into())
);

lib.rs:

This provides Azure Active Directory (OpenID Connect) support for the inth-oauth2 crate.

Example

extern crate inth_oauth2 as oauth;
extern crate inth_oauth2_azure;

use inth_oauth2_azure::AzureCommon;

let client = oauth::Client::new(
    AzureCommon,
    "client-id".into(),
    "client-secret".into(),
    Some("redirect-uri".into())
);

Azure provides multiple endpoints which can be used depending on the type of end user you're wishing to authenticate. More info...

Dependencies

~20MB
~442K SLoC