-
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 (#238)
- Loading branch information
Showing
17 changed files
with
254 additions
and
298 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; |
Oops, something went wrong.