-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Yandex OAuth essentials #100
Labels
enhancement
New feature or request
Comments
Design draftREST APItypealias TokenPair = (RefreshToken, AccessToken)
// Exchange a given refresh token to new tokens pair
POST /auth/token/refreshed: (RefreshToken) -> TokenPair
// Invalidate current tokens pair, logout
DELETE /auth/token: (AccessToken) -> Unit
// Sign in via yandex id and create a new user if not exists
POST /auth/token/yandex: (YandexOAuthToken) -> TokenPair
// Extension points
POST /auth/token/github: (GitHubOAuthToken) -> TokenPair
POST /auth/token/vk: (VKOAuthToken) -> TokenPair DatabaseCREATE TABLE lms.user (
id serial PRIMARY KEY,
creation_moment timestamptz NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE lms.auth (
user_id integer PRIMARY KEY REFERENCES lms.user(id),
refresh_token_hash varchar(256)
);
CREATE TABLE lms.auth_yandex (
user_id integer PRIMARY KEY REFERENCES lms.user(id),
id integer NOT NULL,
login varchar(256) NOT NULL
); |
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
vityaman
added a commit
that referenced
this issue
May 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requirement for #79
References
The text was updated successfully, but these errors were encountered: