This commit is contained in:
AJ ONeal 2017-02-21 12:15:58 -07:00
parent c2b6a91716
commit 8710a751ed
1 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ OAUTH3.urls.grants = function (directive, opts) {
};
OAUTH3.authn = {};
OAUTH3.authn.loginMeta = OAUTH3.authz.loginMeta = function (directive, opts) {
OAUTH3.authn.loginMeta = function (directive, opts) {
if (opts.mock) {
if (opts.mockError) {
return OAUTH3.PromiseA.resolve({data: {error: {message: "Yikes!", code: 'E'}}});
@ -254,7 +254,7 @@ OAUTH3.authn.loginMeta = OAUTH3.authz.loginMeta = function (directive, opts) {
.replace(':id', opts.email)
});
};
OAUTH3.authn.otp = OAUTH3.authz.otp = function (directive, opts) {
OAUTH3.authn.otp = function (directive, opts) {
if (opts.mock) {
if (opts.mockError) {
return OAUTH3.PromiseA.resolve({data: {error: {message: "Yikes!", code: 'E'}}});
@ -275,7 +275,7 @@ OAUTH3.authn.otp = OAUTH3.authz.otp = function (directive, opts) {
}
});
};
OAUTH3.authn.resourceOwnerPassword = OAUTH3.authz.resourceOwnerPassword = function (directive, opts) {
OAUTH3.authn.resourceOwnerPassword = function (directive, opts) {
console.log('ginger bread man');
var providerUri = directive.issuer;