Skip to content
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

OIDC SSO Re: Issue #246 #1955

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ hooks
tools

# Web vault
web-vault
#web-vault
191 changes: 183 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ pico-args = "0.4.2"
backtrace = "0.3.64"

# Macro ident concatenation
openidconnect = "2.0.1"
paste = "1.0.6"
governor = "0.4.1"

Expand Down
2 changes: 2 additions & 0 deletions migrations/mysql/2021-09-16-133000_add_sso/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP TABLE sso_nonce;
DROP TABLE sso_config;
18 changes: 18 additions & 0 deletions migrations/mysql/2021-09-16-133000_add_sso/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ALTER TABLE organizations ADD COLUMN identifier TEXT;

CREATE TABLE sso_nonce (
uuid CHAR(36) NOT NULL PRIMARY KEY,
org_uuid CHAR(36) NOT NULL REFERENCES organizations (uuid),
nonce CHAR(36) NOT NULL
);

CREATE TABLE sso_config (
uuid CHAR(36) NOT NULL PRIMARY KEY,
org_uuid CHAR(36) NOT NULL REFERENCES organizations(uuid),
use_sso BOOLEAN NOT NULL,
callback_path TEXT NOT NULL,
signed_out_callback_path TEXT NOT NULL,
authority TEXT,
client_id TEXT,
client_secret TEXT
);
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ CREATE TABLE twofactor (

CREATE TABLE invitations (
email VARCHAR(255) NOT NULL PRIMARY KEY
);
);
2 changes: 2 additions & 0 deletions migrations/postgresql/2021-09-16-133000_add_sso/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP TABLE sso_nonce;
DROP TABLE sso_config;
Loading