Fixed the previous commit.
This commit is contained in:
parent
4c9e70bd6f
commit
b524fc789a
|
@ -174,9 +174,11 @@ OAUTH3.urls.publicKeys = function(directive, opts) {
|
|||
}
|
||||
|
||||
var sub = opts.sub || opts.session.token.sub;
|
||||
var dir = directive.retieve_jwk;
|
||||
var dir = directive.retrieve_jwk;
|
||||
var url = OAUTH3.url.resolve(directive.api, dir.url)
|
||||
.replace(":sub", sub);
|
||||
.replace(":sub", sub)
|
||||
.replace("/:kid", "");
|
||||
console.log("DEBUG: public key listing url: ", url);
|
||||
|
||||
var method = opts.method || dir.method || "GET";
|
||||
|
||||
|
|
Loading…
Reference in New Issue