UNPKG

@salte-auth/azure

Version:

A Salte Auth provider for authenticating with Azure AD!

29 lines (20 loc) 545 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var salteAuth = require('@salte-auth/salte-auth'); class Azure extends salteAuth.OpenIDProvider { constructor(config) { super(config); } get name() { return 'azure'; } get login() { return this.url("".concat(this.config.url, "/oauth2/v2.0/authorize")); } get logout() { return this.url("".concat(this.config.url, "/oauth2/logout"), { post_logout_redirect_uri: this.redirectUrl('logout') }); } } exports.Azure = Azure;