-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add account name to user model and use it for auth
- Loading branch information
witold.brzozowski
committed
Feb 15, 2024
1 parent
af82011
commit 2117e6c
Showing
16 changed files
with
110 additions
and
154 deletions.
There are no files selected for viewing
56 changes: 28 additions & 28 deletions
56
src/main/java/info/fingo/urlopia/config/ad/Attribute.java
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package info.fingo.urlopia.config.ad; | ||
|
||
public enum Attribute { | ||
PRINCIPAL_NAME("userPrincipalName"), | ||
MAIL("mail"), | ||
FIRST_NAME("givenname"), | ||
LAST_NAME("sn"), | ||
MEMBER("member"), | ||
MEMBER_OF("memberOf"), | ||
MANAGED_OBJECTS("managedObjects"), | ||
MANAGED_BY("managedBy"), | ||
NAME("name"), | ||
DISTINGUISHED_NAME("distinguishedName"), | ||
CREATED_TIME("whenCreated"), | ||
CHANGED_TIME("whenChanged"), | ||
USER_ACCOUNT_CONTROL("userAccountControl"); | ||
|
||
|
||
private String key; | ||
|
||
Attribute(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
} | ||
package info.fingo.urlopia.config.ad; | ||
|
||
public enum Attribute { | ||
PRINCIPAL_NAME("userPrincipalName"), | ||
MAIL("mail"), | ||
FIRST_NAME("givenname"), | ||
LAST_NAME("sn"), | ||
MEMBER("member"), | ||
MEMBER_OF("memberOf"), | ||
MANAGED_OBJECTS("managedObjects"), | ||
MANAGED_BY("managedBy"), | ||
NAME("name"), | ||
DISTINGUISHED_NAME("distinguishedName"), | ||
CREATED_TIME("whenCreated"), | ||
CHANGED_TIME("whenChanged"), | ||
USER_ACCOUNT_CONTROL("userAccountControl"), | ||
ACCOUNT_NAME("sAMAccountName"); | ||
|
||
private String key; | ||
|
||
Attribute(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
} |
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
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 @@ | ||
ALTER TABLE users DROP COLUMN account_name; |
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 @@ | ||
ALTER TABLE users ADD COLUMN account_name VARCHAR(63) NOT NULL UNIQUE; |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
VITE_OAUTH_CLIENT_ID= | ||
VITE_OAUTH_TENANT_ID= | ||
VITE_AUTH_MODE=AUTH | ||
VITE_OAUTH_CLIENT_ID= | ||
VITE_OAUTH_TENANT_ID= | ||
VITE_AUTH_MODE=AUTH |
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.vscode | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.vscode | ||
|