Skip to content

Commit

Permalink
Merge pull request #224 from IQSS/feat/206-oidc-bearer-token-mechanism
Browse files Browse the repository at this point in the history
Add OIDC Bearer Token Auth mechanism based on the PoC design
  • Loading branch information
ofahimIQSS authored Dec 19, 2024
2 parents d6708f3 + 5f50318 commit c420849
Show file tree
Hide file tree
Showing 14 changed files with 738 additions and 49 deletions.
29 changes: 29 additions & 0 deletions docs/useCases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit c420849

Please sign in to comment.