<commit_before># Space

> A user management microservice; OAuth 2 provider

Space (formely known as Jupiter) is an user authentication and authorisation
microservice intended to be used across multiple client applications. Currently,
I'm using it to provide OAuth 2 authorisation for the [earaujoassis/wallet](https://github.com/earaujoassis/wallet)
and [earaujoassis/postal](https://github.com/earaujoassis/postal) projects.
Though it is not intended to be used widely, it can be used as a reference implementation
of a Go-based OAuth 2 provider.

I'm using Gin as the Web Framework and GORM for Go's structures&ndash;relational
design mapping. Redis is used as a memory store to keep track of users' atomic and
ephemeral actions (like the whole authorisation process under the "Authorization Code Grant"
method, described in [RFC 6749, section 4.1](https://tools.ietf.org/html/rfc6749#section-4.1)).
For the authentication process, it is mandatory to use Two-factor authentication (Time-based One-time Password).

It is not planned to implement all authorisation methods described in RFC 6749
but sections 4.1 and [4.3](https://tools.ietf.org/html/rfc6749#section-4.3),
the "Resource Owner Password Credentials Grant".

## Setup and running

Please make sure to place this project inside the `$GOPATH`. Once that is done:

```sh
$ go get github.com/tools/godep
$ godep restore
$ go get github.com/mattn/goreman
$ goreman start
```

## Deployment through a docker container

```sh
$ docker build -t earaujoassis/space .
$ docker run --name space.v-0.1.0 -d -p 5000:8080 earaujoassis/space
```

## Issues

Please take a look at [/issues](https://github.com/earaujoassis/space/issues)

## License

[MIT License](http://earaujoassis.mit-license.org/) &copy; <NAME><commit_msg>Update README.md instructions for deployment<commit_after># Space

> A user management microservice; OAuth 2 provider

Space (formely known as Jupiter) is an user authentication and authorisation
microservice intended to be used across multiple client applications. Currently,
I'm using it to provide OAuth 2 authorisation for the [earaujoassis/wallet](https://github.com/earaujoassis/wallet)
and [earaujoassis/postal](https://github.com/earaujoassis/postal) projects.
Though it is not intended to be used widely, it can be used as a reference implementation
of a Go-based OAuth 2 provider.

I'm using Gin as the Web Framework and GORM for Go's structures&ndash;relational
design mapping. Redis is used as a memory store to keep track of users' atomic and
ephemeral actions (like the whole authorisation process under the "Authorization Code Grant"
method, described in [RFC 6749, section 4.1](https://tools.ietf.org/html/rfc6749#section-4.1)).
For the authentication process, it is mandatory to use Two-factor authentication (Time-based One-time Password).

It is not planned to implement all authorisation methods described in RFC 6749
but sections 4.1 and [4.3](https://tools.ietf.org/html/rfc6749#section-4.3),
the "Resource Owner Password Credentials Grant".

## Setup and running

Please make sure to place this project inside the `$GOPATH`. Once that is done:

```sh
$ go get github.com/tools/godep
$ godep restore
$ go get github.com/mattn/goreman
$ goreman start
```

## Deployment through a docker container

```sh
$ docker build -t earaujoassis/space .
$ docker run --net=host --name space.v-0.1.0 -d -p 8080:8080 earaujoassis/space
```

## Issues

Please take a look at [/issues](https://github.com/earaujoassis/space/issues)

## License

[MIT License](http://earaujoassis.mit-license.org/) &copy; Ewerton Assis
{'fraction_non_alphanumeric': 0.09452321378926884, 'fraction_numerical': 0.022240756185710316, 'mean_word_length': 4.711111111111111, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1231835', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1057, 'n_words': 425}