You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/configuration/authentication.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ GitProxy allows setting up various auth methods for both UI users, and the backe
7
7
8
8
### Where to Configure Auth Methods
9
9
10
-
Auth methods can be configured in [proxy.config.json](/proxy.config.json). The `authentication` array allows setting UI authentication, for user login and management purposes. The `apiAuthentication` array allows setting up an _optional_ authentication layer for extra API security.
10
+
Auth methods can be configured in [proxy.config.json](https://github.com/finos/git-proxy/blob/main/proxy.config.json). The `authentication` array allows setting UI authentication, for user login and management purposes. The `apiAuthentication` array allows setting up an _optional_ authentication layer for extra API security.
11
11
12
12
### Default Configuration
13
13
@@ -32,7 +32,7 @@ GitProxy also supports protecting API endpoints with extra auth layers. Currentl
32
32
33
33
#### Active Directory
34
34
35
-
A default, empty setup for OIDC is already present in [proxy.config.json](/proxy.config.json):
35
+
A default, empty setup for OIDC is already present in [proxy.config.json](https://github.com/finos/git-proxy/blob/main/proxy.config.json):
36
36
37
37
```json
38
38
{
@@ -51,7 +51,7 @@ A default, empty setup for OIDC is already present in [proxy.config.json](/proxy
51
51
52
52
#### OIDC
53
53
54
-
A default, empty setup for OIDC is already present in [proxy.config.json](/proxy.config.json). You can fill this in with your required parameters. Here's an example using Google as a login provider:
54
+
A default, empty setup for OIDC is already present in [proxy.config.json](https://github.com/finos/git-proxy/blob/main/proxy.config.json). You can fill this in with your required parameters. Here's an example using Google as a login provider:
55
55
56
56
```json
57
57
"authentication": [
@@ -112,7 +112,7 @@ Note that if the `expectedAudience` is missing, it will be set to the client ID.
112
112
113
113
### Adding your own methods
114
114
115
-
You can add new UI auth methods by extending the [passport.js configuration file](/src/service/passport/local.js) with your desired method. You'll have to define a module and then add it to the `authStrategies` map:
115
+
You can add new UI auth methods by extending the [passport.js configuration file](https://github.com/finos/git-proxy/blob/main/src/service/passport/local.js) with your desired method. You'll have to define a module and then add it to the `authStrategies` map:
116
116
117
117
```js
118
118
constlocal=require('./local');
@@ -126,10 +126,10 @@ const authStrategies = {
126
126
};
127
127
```
128
128
129
-
Check out the files in [src/service/passport](/src/service/passport) for examples on how to define the specific `configure()` functions for each method:
Check out the files in [src/service/passport](https://github.com/finos/git-proxy/blob/main/src/service/passport) for examples on how to define the specific `configure()` functions for each method:
0 commit comments