-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from sebadob/client-force-mfa-feature
Client force mfa feature
- Loading branch information
Showing
17 changed files
with
235 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
alter table clients | ||
add force_mfa bool default false not null; | ||
|
||
alter table clients | ||
alter column force_mfa drop default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
alter table clients | ||
rename to clients_old; | ||
|
||
create table clients | ||
( | ||
id varchar not null | ||
constraint clients_pk | ||
primary key, | ||
name varchar, | ||
enabled bool not null, | ||
confidential bool not null, | ||
secret blob, | ||
secret_kid varchar, | ||
redirect_uris varchar not null, | ||
post_logout_redirect_uris varchar, | ||
allowed_origens varchar, | ||
flows_enabled varchar not null, | ||
access_token_alg varchar not null, | ||
id_token_alg varchar not null, | ||
refresh_token bool not null, | ||
auth_code_lifetime integer not null, | ||
access_token_lifetime integer not null, | ||
scopes varchar not null, | ||
default_scopes varchar not null, | ||
challenge varchar, | ||
force_mfa bool not null | ||
); | ||
|
||
insert into clients(id, | ||
name, | ||
enabled, | ||
confidential, | ||
secret, | ||
secret_kid, | ||
redirect_uris, | ||
post_logout_redirect_uris, | ||
allowed_origens, | ||
flows_enabled, | ||
access_token_alg, | ||
id_token_alg, | ||
refresh_token, | ||
auth_code_lifetime, | ||
access_token_lifetime, | ||
scopes, | ||
default_scopes, | ||
challenge, | ||
force_mfa) | ||
select id, | ||
name, | ||
enabled, | ||
confidential, | ||
secret, | ||
secret_kid, | ||
redirect_uris, | ||
post_logout_redirect_uris, | ||
allowed_origens, | ||
flows_enabled, | ||
access_token_alg, | ||
id_token_alg, | ||
refresh_token, | ||
auth_code_lifetime, | ||
access_token_lifetime, | ||
scopes, | ||
default_scopes, | ||
challenge, | ||
false as force_mfa | ||
from clients_old; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.