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
This project provides tools to set up a custom authentication and authorization server.
7
-
`auth-server` can act as a proxy middleware or be configured in a stand-alone mode. It doesn't require any third-party software integration. Use one of the [available repositories](./repository) to configure backend storage, or implement one of your own.
6
+
This project offers a toolkit for building and configuring a tailored authentication and authorization service.
8
7
9
-
**Note:** This project has not yet passed security testing. Make sure you know what you are doing when setting up your own OAuth2 provider.
8
+
`auth-server` can act as a proxy middleware or be configured in a stand-alone mode. It doesn't require any third-party software integration.
9
+
Leverage existing backend [storage repositories](internal/repository) for storing security policies or develop a custom one to suit your specific requirements.
10
+
For information on how to configure repositories using environment variables, refer to the [repository configuration](docs/repository_configuration.md) page.
11
+
12
+
> [!NOTE]
13
+
> This project's security has not been thoroughly evaluated. Proceed with caution when setting up your own auth provider.
10
14
11
15
## Introduction
12
16
***Authentication** is used by a server when the server needs to know exactly who is accessing their information or site.
13
17
***Authorization** is a process by which a server determines if the client has permission to use a resource or access a file.
14
18
15
-
Creating an authentication and authorization strategy is always a complex process. A number of quick questions immediately arise:
19
+
The inherent complexity of crafting an authentication and authorization strategy raises a barrage of immediate questions:
16
20
17
-
*Should we set up separate services for authentication and authorization
18
-
*How do we handle access token creation and who is responsible for this
19
-
*Should we alter our REST service to support authorization flow
21
+
*Would it be beneficial to utilize separate services for authentication and authorization purposes?
22
+
*What is the process for creating access tokens, and who is tasked with this responsibility?
23
+
*Is it necessary to adapt our REST service to support an authorization flow?
20
24
21
-
The `auth-server` project tries to accumulate all of those capabilities and act as a transparent authentication and authorization proxy middleware.
25
+
The `auth-server` project aims to address these concerns by serving as a transparent authentication and authorization proxy middleware.
1. The user requests an access token (JWT), using a basic authentication header:
27
31
```
@@ -45,20 +49,27 @@ The `auth-server` project tries to accumulate all of those capabilities and act
45
49
46
50
## Installation and Prerequisites
47
51
* `auth-server` is written in Golang.
48
-
To install the latest stable version of Go, visit https://golang.org/dl/
52
+
To install the latest stable version of Go, visit the [releases page](https://golang.org/dl/).
53
+
54
+
* Read the following [instructions](./secrets/README.md) to generate keys required to sign the token. Specify the location of the generated certificates in the service configuration file. An example of the configuration file can be found [here](config/service_config.yml).
55
+
56
+
* The following example shows how to run the service using a configuration file:
57
+
```
58
+
./auth -c service_config.yml
59
+
```
49
60
50
61
* To run the project using Docker, visit their [page](https://www.docker.com/get-started) to get started. Docker images are available under the [GitHub Packages](https://github.com/reugn/auth-server/packages).
51
62
52
63
* Install `docker-compose` to get started with the examples.
53
64
54
-
* Read the following [instructions](./secrets/README.md) to generate keys.
55
-
56
65
## Examples
57
-
Examples are available under the examples folder.
66
+
Examples are available under the [examples](examples) folder.
58
67
59
68
To run `auth-server` as a [Traefik](https://docs.traefik.io/) middleware:
0 commit comments