Skip to content
No description, website, or topics provided.
Rust PLpgSQL TSQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
admin-api
db
migrations
public-api
.env.sample
.gitignore
Cargo.toml
README.md
diesel.toml
swagger.yaml

README.md

Readme

Flows

Glossary

It's implements simplified OAuth 2.0 flow (example)

  • Application — OAuth Client App
  • User — the person who wants to be authenticated, to access protected information.
  • Authmenow — Authorization server

Authorization flow

Client side:

  1. User wants to login. Open https://application/login
  2. Application (redirects|opens a window) to https://authmenow/session?application_id&redirect_uri&state
  3. Authmenow checks application request (application_id matches redirect_uri)
  4. Authmenow shows login form
  5. User inserts credentials
  6. Authmenow checks credentials
  7. Authmenow sends authorization_code to redirect_uri

Server side:

  1. Application sends authorization_code, application_id and secret_key to Authmenow

  2. Authmenow checks authorization_code (application_id matches secret_key, matches authorization_code)

  3. Authmenow sends access_token back to Application

  4. Application makes request using access_token to Authmenow to get info about session

  5. Authmenow checks access_token

  6. Authmenow returns info about session back to Application

You can’t perform that action at this time.