-
Notifications
You must be signed in to change notification settings - Fork 8
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 #224 from IQSS/feat/206-oidc-bearer-token-mechanism
Add OIDC Bearer Token Auth mechanism based on the PoC design
- Loading branch information
Showing
14 changed files
with
738 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ The different use cases currently available in the package are classified below, | |
- [Users write use cases](#users-write-use-cases) | ||
- [Delete Current API Token](#delete-current-api-token) | ||
- [Recreate Current API Token](#recreate-current-api-token) | ||
- [Register User](#register-user) | ||
- [Info](#Info) | ||
- [Get Dataverse Backend Version](#get-dataverse-backend-version) | ||
- [Get Maximum Embargo Duration In Months](#get-maximum-embargo-duration-in-months) | ||
|
@@ -1300,6 +1301,34 @@ recreateCurrentApiToken.execute().then((apiTokenInfo: ApiTokenInfo) => { | |
|
||
_See [use case](../src/users/domain/useCases/RecreateCurrentApiToken.ts) implementation_. | ||
|
||
### Register User | ||
|
||
Register a new user, given a [UserDTO](../src/users/domain/dtos/UserDTO.ts) | ||
|
||
##### Example call: | ||
|
||
```typescript | ||
import { registerUser } from '@iqss/dataverse-client-javascript' | ||
|
||
/* ... */ | ||
|
||
const userDTO: UserDTO = { | ||
username: 'johndoe', | ||
firstName: 'John', | ||
lastName: 'Doe', | ||
emailAddress: '[email protected]', | ||
position: '', | ||
affiliation: '', | ||
termsAccepted: true | ||
} | ||
|
||
registerUser.execute(userDTO) | ||
|
||
/* ... */ | ||
``` | ||
|
||
_See [use case](../src/users/domain/useCases/RegisterUser.ts) implementation_. | ||
|
||
## Info | ||
|
||
#### Get Dataverse Backend Version | ||
|
Oops, something went wrong.