mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02:00
feat: rebrand sdk tokens and sdk types
This commit is contained in:
parent
216e5411ca
commit
f9617f72bc
@ -61,7 +61,7 @@ If you use the docker compose file from the previous step, here's the configurat
|
|||||||
- For front-end SDKs, use:
|
- For front-end SDKs, use:
|
||||||
- URL: `http://localhost:4242/api/frontend/`
|
- URL: `http://localhost:4242/api/frontend/`
|
||||||
- `clientKey`: `default:development.unleash-insecure-frontend-api-token`
|
- `clientKey`: `default:development.unleash-insecure-frontend-api-token`
|
||||||
- For server-side SDKs, use:
|
- For Backend SDKs, use:
|
||||||
- Unleash API URL: `http://localhost:4242/api/`
|
- Unleash API URL: `http://localhost:4242/api/`
|
||||||
- API token: `default:development.unleash-insecure-api-token`
|
- API token: `default:development.unleash-insecure-api-token`
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ Read more in the [_system overview_ section of the Unleash documentation](https:
|
|||||||
|
|
||||||
To connect your application to Unleash you'll need to use a client SDK for your programming language.
|
To connect your application to Unleash you'll need to use a client SDK for your programming language.
|
||||||
|
|
||||||
**Official server-side SDKs:**
|
**Official Backend SDKs:**
|
||||||
|
|
||||||
- [Go SDK](https://docs.getunleash.io/reference/sdks/go)
|
- [Go SDK](https://docs.getunleash.io/reference/sdks/go)
|
||||||
- [Java SDK](https://docs.getunleash.io/reference/sdks/java)
|
- [Java SDK](https://docs.getunleash.io/reference/sdks/java)
|
||||||
|
@ -23,16 +23,16 @@ export const useApiTokenForm = (project?: string) => {
|
|||||||
const apiTokenTypes: SelectOption[] = [
|
const apiTokenTypes: SelectOption[] = [
|
||||||
{
|
{
|
||||||
key: TokenType.CLIENT,
|
key: TokenType.CLIENT,
|
||||||
label: `Server-side SDK (${TokenType.CLIENT})`,
|
label: 'Backend SDK',
|
||||||
title: 'Connect server-side SDK or Unleash Proxy/Edge',
|
title: 'Creates a backend token to connect a backend SDK or Unleash Edge',
|
||||||
enabled:
|
enabled:
|
||||||
useHasRootAccess(CREATE_CLIENT_API_TOKEN) ||
|
useHasRootAccess(CREATE_CLIENT_API_TOKEN) ||
|
||||||
hasCreateProjectTokenPermission,
|
hasCreateProjectTokenPermission,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: TokenType.FRONTEND,
|
key: TokenType.FRONTEND,
|
||||||
label: `Client-side SDK (${TokenType.FRONTEND})`,
|
label: 'Frontend SDK',
|
||||||
title: 'Connect web and mobile SDK directly to Unleash',
|
title: 'Creates a frontend token to connect from a frontend SDK',
|
||||||
enabled:
|
enabled:
|
||||||
useHasRootAccess(CREATE_FRONTEND_API_TOKEN) ||
|
useHasRootAccess(CREATE_FRONTEND_API_TOKEN) ||
|
||||||
hasCreateProjectTokenPermission,
|
hasCreateProjectTokenPermission,
|
||||||
|
@ -142,12 +142,12 @@ const tokenDescriptions: {
|
|||||||
[index: string]: { label: string; title: string };
|
[index: string]: { label: string; title: string };
|
||||||
} = {
|
} = {
|
||||||
client: {
|
client: {
|
||||||
label: 'CLIENT',
|
label: 'BACKEND',
|
||||||
title: 'Connect server-side SDK or Unleash Proxy/Edge',
|
title: 'Connect backend SDK or Unleash Edge',
|
||||||
},
|
},
|
||||||
frontend: {
|
frontend: {
|
||||||
label: 'FRONTEND',
|
label: 'FRONTEND',
|
||||||
title: 'Connect web and mobile SDK',
|
title: 'Connect frontend SDK',
|
||||||
},
|
},
|
||||||
admin: {
|
admin: {
|
||||||
label: 'ADMIN',
|
label: 'ADMIN',
|
||||||
|
@ -334,10 +334,9 @@ export const EnvironmentCloneModal = ({
|
|||||||
</FormControl>
|
</FormControl>
|
||||||
<StyledInlineContainer>
|
<StyledInlineContainer>
|
||||||
<StyledInputSecondaryDescription>
|
<StyledInputSecondaryDescription>
|
||||||
A new Server-side SDK (CLIENT) API token
|
A new backend SDK API token will be
|
||||||
will be generated for the cloned
|
generated for the cloned environment, so you
|
||||||
environment, so you can get started right
|
can get started right away.
|
||||||
away.
|
|
||||||
</StyledInputSecondaryDescription>
|
</StyledInputSecondaryDescription>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={
|
condition={
|
||||||
|
@ -175,10 +175,10 @@ export const AvailableIntegrations: VFC<IAvailableIntegrationsProps> = ({
|
|||||||
<StyledSdksGroup>
|
<StyledSdksGroup>
|
||||||
<Box>
|
<Box>
|
||||||
<Typography component='h4' variant='h4'>
|
<Typography component='h4' variant='h4'>
|
||||||
Server-side SDKs
|
Backend SDKs
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant='body2' color='text.secondary'>
|
<Typography variant='body2' color='text.secondary'>
|
||||||
Server-side clients run on your server and
|
Backend clients run on your server and
|
||||||
communicate directly with your Unleash instance.
|
communicate directly with your Unleash instance.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -5,7 +5,7 @@ export const bulkRegistrationSchema = {
|
|||||||
$id: '#/components/schemas/bulkRegistrationSchema',
|
$id: '#/components/schemas/bulkRegistrationSchema',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
required: ['appName', 'instanceId', 'environment'],
|
required: ['appName', 'instanceId', 'environment'],
|
||||||
description: `An application registration. Defines the format POSTed by our server-side SDKs when they're starting up`,
|
description: `An application registration. Defines the format POSTed by our backend SDKs when they're starting up`,
|
||||||
properties: {
|
properties: {
|
||||||
connectVia: {
|
connectVia: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
|
@ -16,7 +16,7 @@ export const clientFeaturesSchema = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
required: ['version', 'features'],
|
required: ['version', 'features'],
|
||||||
description:
|
description:
|
||||||
'Configuration data for server-side SDKs for evaluating feature flags.',
|
'Configuration data for Backend SDKs for evaluating feature flags.',
|
||||||
properties: {
|
properties: {
|
||||||
version: {
|
version: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
@ -98,7 +98,7 @@ export const resourceLimitsSchema = {
|
|||||||
minimum: 0,
|
minimum: 0,
|
||||||
example: 2000,
|
example: 2000,
|
||||||
description:
|
description:
|
||||||
'The maximum number of SDK and admin API tokens you can have at the same time. This limit applies only to server-side and client-side SDK tokens and to admin tokens. Personal access tokens are not subject to this limit. The limit applies to the total number of tokens across all projects in your organization.',
|
'The maximum number of SDK and admin API tokens you can have at the same time. This limit applies only to backend and frontend SDK tokens and to admin tokens. Personal access tokens are not subject to this limit. The limit applies to the total number of tokens across all projects in your organization.',
|
||||||
},
|
},
|
||||||
projects: {
|
projects: {
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
|
@ -37,7 +37,7 @@ const OPENAPI_TAGS = [
|
|||||||
{
|
{
|
||||||
name: 'Client',
|
name: 'Client',
|
||||||
description:
|
description:
|
||||||
'Endpoints for [Unleash server-side clients](https://docs.getunleash.io/reference/sdks).',
|
'Endpoints for [Unleash backend clients](https://docs.getunleash.io/reference/sdks).',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Context',
|
name: 'Context',
|
||||||
|
Loading…
Reference in New Issue
Block a user