Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@itwin/service-authorization
Advanced tools
Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
The @itwin/service-authorization package contains a service based client for authorization with the iTwin platform using OIDC client credentials flow.
const client = new ServiceAuthorizationClient(serviceConfiguration: ServiceAuthorizationClientConfiguration)
// retrieve a new access token
const token = await client.getAccessToken()
Property | Type | Description | Required | Default |
---|---|---|---|---|
clientId | string | Client application's identifier as registered with the Bentley IMS OIDC/OAuth2 provider. | true | none |
clientSecret | string | Client application's secret key as registered with the Bentley IMS OIDC/OAuth2 provider. | true | none |
scope | string | List of space separated scopes to request access to various resources. | true | none |
authority? | string | The URL of the OIDC/OAuth2 provider. If left undefined, the iTwin Platform authority (ims.bentley.com ) will be used by default. | false | "ims.bentley.com" |
Name | Type | Description |
---|---|---|
getAccessToken | () => Promise<string> | Returns the access token. |
hasExpired | boolean | Returns true if the access token has expired. |
hasSignedIn | boolean | Returns true if signed in - the accessToken may be active or may have expired and require a refresh |
isAuthorized | boolean | Returns true if there's a current authorized client Set to true if signed in and the access token has not expired, and false otherwise. |
For information about the service authorization workflow please visit the Authorization Overview Page.
FAQs
Service authorization client for iTwin platform
The npm package @itwin/service-authorization receives a total of 11,729 weekly downloads. As such, @itwin/service-authorization popularity was classified as popular.
We found that @itwin/service-authorization demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.