clean up
This commit is contained in:
parent
c2b6a91716
commit
8710a751ed
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue