Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Node Radius Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Node Radius Server
Commits
191bb542
Commit
191bb542
authored
Feb 23, 2020
by
simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: eslint it
parent
a3ed0be0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
README.md
README.md
+15
-12
__tests__/auth/ldap.test.ts
__tests__/auth/ldap.test.ts
+1
-1
No files found.
README.md
View file @
191bb542
...
@@ -56,7 +56,7 @@ you need:
...
@@ -56,7 +56,7 @@ you need:
3.
Check config.js and adapt to your needs
3.
Check config.js and adapt to your needs
-
configure authentication:
-
configure authentication:
set authenticaiton to one of the provided authenticators.
set authenticaiton to one of the provided authenticators.
```
js
```
js
var
config
=
{
var
config
=
{
...
@@ -77,8 +77,6 @@ var config = {
...
@@ -77,8 +77,6 @@ var config = {
see config.js in root
see config.js in root
### Authentications
### Authentications
#### Google LDAP
#### Google LDAP
...
@@ -100,6 +98,7 @@ interface IGoogleLDAPAuthOptions {
...
@@ -100,6 +98,7 @@ interface IGoogleLDAPAuthOptions {
```
```
Example
Example
```
js
```
js
c
=
{
c
=
{
// GoogleLDAPAuth (optimized for google auth)
// GoogleLDAPAuth (optimized for google auth)
...
@@ -111,7 +110,7 @@ c = {
...
@@ -111,7 +110,7 @@ c = {
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.hokify.com.40567.crt
'
)
cert
:
fs
.
readFileSync
(
'
ldap.gsuite.hokify.com.40567.crt
'
)
}
}
}
}
}
}
;
```
```
#### LDAP
#### LDAP
...
@@ -142,6 +141,7 @@ interface ILDAPAuthOptions {
...
@@ -142,6 +141,7 @@ interface ILDAPAuthOptions {
```
```
Example
Example
```
js
```
js
c
=
{
c
=
{
authentication
:
'
LDAPAuth
'
,
authentication
:
'
LDAPAuth
'
,
...
@@ -154,7 +154,7 @@ c = {
...
@@ -154,7 +154,7 @@ c = {
servername
:
'
ldap.google.com
'
servername
:
'
ldap.google.com
'
}
}
}
}
}
}
;
```
```
#### IMAP
#### IMAP
...
@@ -171,6 +171,7 @@ interface IIMAPAuthOptions {
...
@@ -171,6 +171,7 @@ interface IIMAPAuthOptions {
```
```
Example
Example
```
js
```
js
c
=
{
c
=
{
authentication
:
'
IMAPAuth
'
,
authentication
:
'
IMAPAuth
'
,
...
@@ -180,7 +181,7 @@ c = {
...
@@ -180,7 +181,7 @@ c = {
useSecureTransport
:
true
,
useSecureTransport
:
true
,
validHosts
:
[
'
hokify.com
'
]
validHosts
:
[
'
hokify.com
'
]
}
}
}
};
```
```
#### SMTP
#### SMTP
...
@@ -197,6 +198,7 @@ interface ISMTPAuthOptions {
...
@@ -197,6 +198,7 @@ interface ISMTPAuthOptions {
```
```
Example
Example
```
js
```
js
c
=
{
c
=
{
authentication
:
'
IMAPAuth
'
,
authentication
:
'
IMAPAuth
'
,
...
@@ -206,7 +208,7 @@ c = {
...
@@ -206,7 +208,7 @@ c = {
useSecureTransport
:
true
,
useSecureTransport
:
true
,
validHosts
:
[
'
gmail.com
'
]
validHosts
:
[
'
gmail.com
'
]
}
}
}
}
;
```
```
#### Static Auth
#### Static Auth
...
@@ -223,17 +225,18 @@ interface IStaticAuthOtions {
...
@@ -223,17 +225,18 @@ interface IStaticAuthOtions {
```
```
Example
Example
```
js
```
js
c
=
{
c
=
{
authentication
:
'
StaticAuth
'
,
authentication
:
'
StaticAuth
'
,
authenticationOptions
:
{
authenticationOptions
:
{
validCredentials
:
[
validCredentials
:
[
{
username
:
'
test
'
,
password
:
'
pwd
'
},
{
username
:
'
test
'
,
password
:
'
pwd
'
},
{
username
:
'
user1
'
,
password
:
'
password
'
},
{
username
:
'
user1
'
,
password
:
'
password
'
},
{
username
:
'
admin
'
,
password
:
'
cool
'
}
{
username
:
'
admin
'
,
password
:
'
cool
'
}
]
]
}
}
}
}
;
```
```
## Usage
## Usage
...
...
__tests__/auth/ldap.test.ts
View file @
191bb542
...
@@ -12,7 +12,7 @@ describe('test ldap auth', function() {
...
@@ -12,7 +12,7 @@ describe('test ldap auth', function() {
tlsOptions
:
{
tlsOptions
:
{
servername
:
'
ldap.google.com
'
,
servername
:
'
ldap.google.com
'
,
key
:
fs
.
readFileSync
(
'
./ldap.gsuite.hokify.com.40567.key
'
),
key
:
fs
.
readFileSync
(
'
./ldap.gsuite.hokify.com.40567.key
'
),
cert
:
fs
.
readFileSync
(
'
./ldap.gsuite.hokify.com.40567.crt
'
)
,
cert
:
fs
.
readFileSync
(
'
./ldap.gsuite.hokify.com.40567.crt
'
)
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment