This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const bibtexParse = require('bibtex-parse-js'); | |
const _escapeString = function (val) { | |
val = val.replace(/[\0\n\r\b\t\\'"\x1a]/g, function (s) { | |
switch (s) { | |
case "\0": | |
return "\\0"; | |
case "\n": | |
return "\\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Utility to load classes from a JAR file | |
*/ | |
public class JarFileClassLoader { | |
private static Map<String, JarFileClassLoaderCacheItem> urlClassLoadersCache = new HashMap<>(); | |
@SuppressWarnings("unchecked") | |
public static <T> T initializeClassFromJar(String jarPath, String className) | |
throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Debug from 'debug'; | |
import { Verifier } from 'feathers-authentication-oauth2'; | |
const debug = Debug('feathers-authentication-emailfirstoauth2:verify'); | |
class EmailFirstOAuth2Verifier extends Verifier { | |
constructor (app, options = {}) { | |
options.emailField = options.emailField || 'email'; | |
super(app, options); |