This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
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 #248 from galasa-dev/iss1729-revoke-tokens
Separate external User bean from its internal usage, add Dex user ID to token records
- Loading branch information
Showing
4 changed files
with
47 additions
and
12 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
34 changes: 34 additions & 0 deletions
34
...t/dev.galasa.auth.couchdb/src/main/java/dev/galasa/auth/couchdb/internal/CouchdbUser.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright contributors to the Galasa project | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package dev.galasa.auth.couchdb.internal; | ||
|
||
import dev.galasa.framework.spi.auth.IInternalUser; | ||
|
||
public class CouchdbUser implements IInternalUser { | ||
|
||
private String loginId; | ||
private String dexUserId; | ||
|
||
public CouchdbUser(String loginId, String dexUserId) { | ||
this.loginId = loginId; | ||
this.dexUserId = dexUserId; | ||
} | ||
|
||
public CouchdbUser(IInternalUser user) { | ||
this.loginId = user.getLoginId(); | ||
this.dexUserId = user.getDexUserId(); | ||
} | ||
|
||
@Override | ||
public String getDexUserId() { | ||
return dexUserId; | ||
} | ||
|
||
@Override | ||
public String getLoginId() { | ||
return loginId; | ||
} | ||
} |
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