https://github.com/ffimnsr/haya-rs
A re-created version of the gotrue/supabase-auth service.
https://github.com/ffimnsr/haya-rs
authentication discovery openid openid-connect rust service
Last synced: over 1 year ago
JSON representation
A re-created version of the gotrue/supabase-auth service.
- Host: GitHub
- URL: https://github.com/ffimnsr/haya-rs
- Owner: ffimnsr
- License: apache-2.0
- Created: 2021-07-10T13:55:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-24T06:59:45.000Z (over 1 year ago)
- Last Synced: 2025-02-03T16:45:58.357Z (over 1 year ago)
- Topics: authentication, discovery, openid, openid-connect, rust, service
- Language: PLpgSQL
- Homepage:
- Size: 294 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Haya (Doorkeeper)
> Hold my hand in yours, and we will not fear what hands like ours can do.
> - The Epic Of Gilgamesh
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Generating EC Private And Public Keys
In order to generate EC private key:
```bash
openssl ecparam -genkey -noout -name prime256v1 |
openssl pkcs8 -topk8 -nocrypt -out ./certs/priv-key.pem
```
To generate the counterpart public key:
```
openssl ec -in ./certs/priv-key.pem -pubout -out ./certs/pub.pem
```
### Endpoints
- GET /settings
- POST, PUT /admin/users/
- POST /admin/generate_link
- POST /signup
- POST /resend
- POST /invite
- GET, POST /verify
- POST /otp
- POST /recover
- POST /token
- GET, PUT /user
- GET /reauthenticate
- POST /logout
- GET /authorize
- GET /callback
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.