fix(docs): better file names
This commit is contained in:
parent
5e8408ccac
commit
589749883c
16
README.md
16
README.md
@ -94,8 +94,8 @@ interface IGoogleLDAPAuthOptions {
|
|||||||
base: string;
|
base: string;
|
||||||
/** tls options
|
/** tls options
|
||||||
* e.g. {
|
* e.g. {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||||
} */
|
} */
|
||||||
tlsOptions: tls.TlsOptions;
|
tlsOptions: tls.TlsOptions;
|
||||||
}
|
}
|
||||||
@ -110,8 +110,8 @@ c = {
|
|||||||
authenticationOptions: {
|
authenticationOptions: {
|
||||||
base: 'dc=hokify,dc=com',
|
base: 'dc=hokify,dc=com',
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -132,8 +132,8 @@ interface ILDAPAuthOptions {
|
|||||||
base: string;
|
base: string;
|
||||||
/** tls options
|
/** tls options
|
||||||
* e.g. {
|
* e.g. {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||||
servername: 'ldap.google.com'
|
servername: 'ldap.google.com'
|
||||||
} */
|
} */
|
||||||
tlsOptions?: any;
|
tlsOptions?: any;
|
||||||
@ -153,8 +153,8 @@ c = {
|
|||||||
url: 'ldaps://ldap.google.com',
|
url: 'ldaps://ldap.google.com',
|
||||||
base: 'dc=hokify,dc=com',
|
base: 'dc=hokify,dc=com',
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||||
servername: 'ldap.google.com'
|
servername: 'ldap.google.com'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@ describe('test google ldap auth', function() {
|
|||||||
const auth = new GoogleLDAPAuth({
|
const auth = new GoogleLDAPAuth({
|
||||||
base: 'dc=hokify,dc=com',
|
base: 'dc=hokify,dc=com',
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
key: fs.readFileSync('./ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('./ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('./ldap.gsuite.hokify.com.40567.crt')
|
cert: fs.readFileSync('./ldap.gsuite.crt')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ describe('test ldap auth', function() {
|
|||||||
base: 'dc=hokify,dc=com',
|
base: 'dc=hokify,dc=com',
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
servername: 'ldap.google.com',
|
servername: 'ldap.google.com',
|
||||||
key: fs.readFileSync('./ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('./ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('./ldap.gsuite.hokify.com.40567.crt')
|
cert: fs.readFileSync('./ldap.gsuite.crt')
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -24,8 +24,9 @@ module.exports = {
|
|||||||
authenticationOptions: {
|
authenticationOptions: {
|
||||||
base: 'dc=hokify,dc=com',
|
base: 'dc=hokify,dc=com',
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
// get your keys from http://admin.google.com/ -> Apps -> LDAP -> Client
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
|
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,8 +36,8 @@ module.exports = {
|
|||||||
url: 'ldaps://ldap.google.com',
|
url: 'ldaps://ldap.google.com',
|
||||||
base: 'dc=hokify,dc=com',
|
base: 'dc=hokify,dc=com',
|
||||||
tlsOptions: {
|
tlsOptions: {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||||
servername: 'ldap.google.com'
|
servername: 'ldap.google.com'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@ interface IGoogleLDAPAuthOptions {
|
|||||||
base: string;
|
base: string;
|
||||||
/** tls options
|
/** tls options
|
||||||
* e.g. {
|
* e.g. {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt')
|
cert: fs.readFileSync('ldap.gsuite.crt')
|
||||||
} */
|
} */
|
||||||
tlsOptions: tls.TlsOptions;
|
tlsOptions: tls.TlsOptions;
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@ interface ILDAPAuthOptions {
|
|||||||
base: string;
|
base: string;
|
||||||
/** tls options
|
/** tls options
|
||||||
* e.g. {
|
* e.g. {
|
||||||
key: fs.readFileSync('ldap.gsuite.hokify.com.40567.key'),
|
key: fs.readFileSync('ldap.gsuite.key'),
|
||||||
cert: fs.readFileSync('ldap.gsuite.hokify.com.40567.crt'),
|
cert: fs.readFileSync('ldap.gsuite.crt'),
|
||||||
servername: 'ldap.google.com'
|
servername: 'ldap.google.com'
|
||||||
} */
|
} */
|
||||||
tlsOptions?: any;
|
tlsOptions?: any;
|
||||||
|
Loading…
Reference in New Issue
Block a user