1.0.2 • Published 1 year ago

@rhoas/service-accounts-sdk v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Service Accounts SDK

RHOAS Service Accounts TypeScript SDK.

Service accounts are a special type of non-human privileged account used to execute applications and run automated services. Service accounts typically will allow you to connect to the services from your applications.

NOTE: Creation of the service account doesn't automatically gives developers priviledge to use it with the service. Please refer to individual service API to see how to add permissions. For example for kafka-instance-sdk check "access-management" APIs.

Getting Started

Install Package

npm install @rhoas/service-accounts-sdk --save

Usage

import { Configuration, DefaultApi} from "@rhoas/service-accounts-sdk";

const accessToken = process.env.CLOUD_API_TOKEN;
const basePath = "https://sso.redhat.com/auth/realms/redhat-external/";

const apiConfig = new Configuration({
  accessToken,
  basePath,
});

const serviceAccountAPI = new ServiceAccountsApi(apiConfig)

serviceAccountAPI.getServiceAccounts().then((data) => {
    console.log(data?.data)
}).catch((err) => {
    console.error(err.message)
})

See ./examples for full example

Security

API is using https://sso.redhat.com for OAuth Authentication. Provided token needs to be AccessToken returned from library like keycloak.js

1.0.2

1 year ago

1.0.2-beta2

1 year ago

1.0.2-beta1

1 year ago

0.55.1

1 year ago

0.53.0

1 year ago

0.52.0

1 year ago

0.48.0-alpha1

2 years ago

0.51.0

1 year ago

0.50.0

1 year ago

0.48.0

1 year ago

0.49.0

1 year ago

0.46.0

2 years ago

0.47.0

2 years ago

0.44.0

2 years ago

0.45.0

2 years ago

0.42.0

2 years ago

0.43.0

2 years ago

0.40.0

2 years ago

0.41.0

2 years ago

0.39.0

2 years ago

0.38.0

2 years ago

0.34.4

2 years ago

0.37.0

2 years ago

0.36.0

2 years ago

0.35.0

2 years ago

0.34.2-alpha1

2 years ago

0.34.3

2 years ago

0.34.2

2 years ago

0.34.1

2 years ago

0.33.2

2 years ago

0.34.0

2 years ago

0.33.1

2 years ago

0.33.0

2 years ago

0.32.1

2 years ago

0.32.0

2 years ago

0.31.1

2 years ago

0.31.0

2 years ago

0.31.0-alpha1

2 years ago

0.30.0

2 years ago

0.29.0

2 years ago

0.29.0-alpha1

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago